Arnaud Jeansen
fcdade475d
Remove and replace java rule by XPath rule
2021-05-26 16:48:16 +02:00
Arnaud Jeansen
8b89010e6f
Add expected linenumbers to tighten the tests
2021-05-26 16:16:57 +02:00
Arnaud Jeansen
9788716b80
Add reproducer of #3304 whih adds a unit test failure
2021-05-26 16:09:03 +02:00
Andreas Dangel
993ae828cf
[doc] Update release notes ( #3247 , #3239 )
2021-05-25 19:21:29 +02:00
Andreas Dangel
a8f5a710a4
Merge pull request #3246 from vszholobov:visibleStaticFieldsMustBeFinal
...
[java] New Rule: MutableStaticState #3246
2021-05-25 19:18:46 +02:00
Andreas Dangel
e0be13ab8b
[doc] Update release notes ( #2987 , #3246 )
2021-05-25 19:18:28 +02:00
Andreas Dangel
da36bb38a9
Merge branch 'master' into pr-3246
2021-05-25 19:11:09 +02:00
Clément Fournier
e69855c69d
Merge branch 'pr/3247'
2021-05-25 13:12:57 +02:00
Clément Fournier
4048b67dd7
Update release notes
2021-05-25 13:12:12 +02:00
Clément Fournier
d33eab202f
Merge branch 'master' into pr/3247
2021-05-25 13:05:12 +02:00
Clément Fournier
9064cdf8cb
Merge branch 'pr/3289'
2021-05-25 12:43:41 +02:00
Clément Fournier
1e4ab03b8d
Merge branch 'master' into pr/3289
2021-05-25 12:43:25 +02:00
Clément Fournier
ed64f11188
Merge branch 'pr/3290'
2021-05-25 12:42:32 +02:00
Clément Fournier
d9a767fae8
Merge branch 'master' into pr/3290
2021-05-25 12:42:22 +02:00
Andreas Dangel
12ec6d60af
Merge pull request #3242 from adangel:issue-699-upgrade-rhino-java8
...
[javascript] Update Rhino library to 1.7.13 #3242
2021-05-21 11:03:22 +02:00
Andreas Dangel and Clément Fournier
a64077f10c
Apply suggestions from code review
...
Co-authored-by: Clément Fournier <clement.fournier76@gmail.com >
2021-05-21 11:00:48 +02:00
Andreas Dangel
c2c26cbbb7
[java] Deprecate rule DefaultPackage
...
Fixes #3206
2021-05-21 10:57:35 +02:00
Andreas Dangel
ce8378b5bf
[java] Deprecate rule CloneThrowsCloneNotSupportedException
...
Fixes #3112
2021-05-21 10:12:43 +02:00
Andreas Dangel
0dab8818af
Update gems
2021-05-20 14:26:47 +02:00
Andreas Dangel
0311101d0e
[ci] Update DANGER_GITHUB_API_TOKEN
2021-05-20 14:07:43 +02:00
Andreas Dangel
981afbf43a
Merge pull request #3272 from YodaDaCoda:master
...
[apex] correction for ApexUnitTestMethodShouldHaveIsTestAnnotation false positives #3272
2021-05-20 13:40:12 +02:00
Andreas Dangel
3511ef2cb7
[doc] Update release notes ( #3183 , #3272 )
2021-05-20 13:39:51 +02:00
William Brockhus
649f62409d
chore: rename is->has
2021-05-19 12:04:21 +10:00
William Brockhus
14a796ba0f
fix: add test for false-positive on @TestSetup
2021-05-19 11:58:43 +10:00
William Brockhus
d6dff2ee4b
fix: use xpath 2.0
2021-05-19 11:58:05 +10:00
Andreas Dangel
89b15cb995
Merge pull request #3279 from oowekyala:issue2639-mkdirs
...
[core] Fix #2639 , create report file directories if they do not exist
2021-05-18 19:53:38 +02:00
William Brockhus
ecbb57cdea
fix: rename ambiguous isTestMethod function
2021-05-18 09:48:06 +10:00
William Brockhus
291a27cf73
fix: update a failing test due to new isTestMethod
2021-05-18 09:48:06 +10:00
William Brockhus
cf39de85b2
feat: rewrite rule as xpath
2021-05-18 09:48:06 +10:00
William Brockhus
4b2457a307
feat: add isTestMethod to ASTModifierNode
2021-05-18 09:48:06 +10:00
William Brockhus
738aca9744
fix: update test for false positives
2021-05-18 09:48:06 +10:00
William Brockhus
f80a53186f
chore: case sensitivity, update docs
2021-05-18 09:48:06 +10:00
William Brockhus
9a7933b6d7
fix: remove unused imports
2021-05-18 09:48:06 +10:00
William Brockhus
b202472ca0
fix: check for deprecated testmethod
...
Instead of checking methods in a test class that have system.assert, which gives false positives, check for the presence of the testmethod modifier.
2021-05-18 09:48:06 +10:00
Vsevolod
01b572c99a
Rename MutableStaticState class to MutableStaticStateTest
...
Change description to make it more soft and add reasoning why
the non-private static non-final fields should be made
constants or immutable references.
2021-05-17 14:12:15 +07:00
Arnaud Jeansen
9e4ea58518
Ignore private modifiers for both methods and inner classes
2021-05-17 09:03:00 +02:00
Clément Fournier
dde7b19f97
Add test for #2642
...
Was fixed by c0eba42f29
in pmd 6.27.0 (bisected)
2021-05-14 19:38:17 +02:00
Clément Fournier
0294083874
Update release notes, refs #3279
2021-05-14 18:50:08 +02:00
Clément Fournier
23e101f62a
Update docs
2021-05-14 17:45:09 +02:00
Clément Fournier
e54c4dc366
Fix #2639
...
Tests are in pmd core, current cli tests
are only in pmd-java unfortunately.
2021-05-14 17:42:16 +02:00
Clément Fournier
53e4515e5e
Merge branch 'pr/3249'
...
Refs #3249
2021-05-14 16:53:32 +02:00
Clément Fournier
53bba780c3
Merge branch 'pr/3274'
2021-05-14 16:51:13 +02:00
Clément Fournier
2c5e58330a
Merge branch 'pr/3275'
2021-05-14 16:47:40 +02:00
Clément Fournier
ec8e977f2c
Fix release notes
2021-05-14 16:47:31 +02:00
Clément Fournier
514c1a8561
Merge branch 'master' into pr/3275
2021-05-14 16:46:54 +02:00
Clément Fournier
db41beab9e
Merge branch 'pr/3261'
...
Refs #3261
2021-05-14 16:44:47 +02:00
Clément Fournier
6d1e2e037f
Merge branch 'pr/3268'
...
Refs #3268
2021-05-14 16:43:37 +02:00
Clément Fournier
2137cf4b80
Merge branch 'master' into constructorcallsoverridablemethod-fix-IOOBE
2021-05-14 16:43:07 +02:00
Clément Fournier
3fe003bd5b
Merge branch 'pr/3255'
...
Refs #3255
2021-05-14 16:39:25 +02:00
Andreas Dangel
00418c1a8d
Update pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/codestyle/xml/OnlyOneReturn.xml
2021-05-13 19:26:35 +02:00