Commit Graph

3779 Commits

Author SHA1 Message Date
7ab71abb4a Merge branch 'master' into pr/3961 2022-05-26 10:31:04 +02:00
8a99dee911 [java] Update test case (ImmutableField) 2022-05-20 09:08:05 +02:00
402939f9cc [java] ImmutableField: fix mockito/spring false positives 2022-05-10 14:56:10 +03:00
d0ed105b90 Slight refactoring of my changes to reduce complexity 2022-05-09 09:12:33 +02:00
f85a635669 Fixed checkstyle violations 2022-05-08 13:02:15 +02:00
418fe220b9 Fixed #3954 missing reporting of issue on records. 2022-05-08 12:45:40 +02:00
5657559026 Fixed #3954 and wrote test confirming it. 2022-05-08 11:55:20 +02:00
ec64315ad7 [maven-release-plugin] prepare for next development iteration 2022-04-30 09:38:24 +02:00
1d2b40b3c0 [maven-release-plugin] prepare release pmd_releases/6.45.0 2022-04-30 09:38:19 +02:00
c224209d7f [test] Backport NodePrinters.kt from pmd7 2022-04-29 11:38:52 +02:00
c9fa05d2c7 Merge pull request #3938 from VoidxHoshi:master
[java] Modify SimplifiedTernary to meet the missing case #3603 #3938
2022-04-28 15:03:28 +02:00
69c7f4b2ad Merge pull request #3930 from adangel:improve-ArrayIsStoredDirectly
[java] Improve rule ArrayIsStoredDirectly #3930
2022-04-28 14:54:15 +02:00
4d78148504 Merge pull request #3900 from adangel:issue-3867-usearraysaslist
[java] Fix UseArraysAsList with method calls #3900
2022-04-28 14:51:31 +02:00
f29770f968 Use a more clear XPath form
Co-authored-by: Clément Fournier <clement.fournier76@gmail.com>
2022-04-27 05:47:07 +08:00
e951d6df8f Use a more clear XPath form to replace the former 2022-04-27 04:07:02 +08:00
3841e7d0c9 Revert the original XPath 2022-04-25 06:50:56 +08:00
f1a2a77e64 modify the SimplifiedTernary test 2022-04-25 03:31:19 +08:00
56cc9fc163 make the description simple 2022-04-25 02:35:34 +08:00
38d3c091d0 Update pmd-java/src/main/resources/category/java/design.xml
Co-authored-by: Clément Fournier <clement.fournier76@gmail.com>
2022-04-25 02:27:26 +08:00
28a454d155 Update pmd-java/src/main/resources/category/java/design.xml
Co-authored-by: Clément Fournier <clement.fournier76@gmail.com>
2022-04-25 02:25:18 +08:00
996f81ccce Modify the rule to meet the missing case 2022-04-24 23:36:46 +08:00
9b2a92bc52 Merge pull request #3921 from oowekyala:issue3068-mock-rules-for-cli-tests
[java] Make cli tests use dummy rules #3921
2022-04-21 16:55:29 +02:00
f27c6453ca [java] ArrayIsStoredDirectly - report assignment rather than formal param
Fixes #3929
2022-04-21 15:15:11 +02:00
0d8373d290 [java] ArrayIsStoredDirectly - fix field access with this
Fixes #1185
2022-04-21 14:48:23 +02:00
5566290821 [java] ArrayIsStoredDirectly - ignore method calls
Fixes #1474
2022-04-21 14:31:20 +02:00
8d5c2e5683 [java] ArrayIsStoredDirectly - fix tree traversal
Fixes #3879
2022-04-21 14:12:47 +02:00
9513c505fb checkstyle 2022-04-19 00:30:20 -06:00
6f12ed1322 Stop ignoring name "IDENT" 2022-04-19 00:30:20 -06:00
aab240bc2d Allow the ignored fieldnames in the Unused Private Field check to be configurable. The current hardcoded defaults handle the fields needed for java serialization, but this isn't documented, and having this be configurable, as well as explicitly documented can be helpful. For example, our default new file template always creates a logger for every file, and I would prefer to have the logger there unused for future use, rather than having to pull it when not used 2022-04-19 00:30:20 -06:00
cdf4944865 Checkstyle 2022-04-15 20:05:04 +02:00
c778266294 Update java/CLITest 2022-04-15 19:41:39 +02:00
359225ca37 Update ExcludeLinesTest 2022-04-15 19:34:55 +02:00
715442b66b Update java/PMDTaskTest to use mocked rules 2022-04-15 19:31:56 +02:00
ddb0ecfceb [java] Fix UseArraysAsList with method calls
- Fixes #3867
2022-04-08 15:30:25 +02:00
674353c716 [java] Catch LinkageError in UselessOverridingMethodRule
Might occur when the auxclasspath is incomplete
2022-04-01 19:19:44 +02:00
be3e941a08 [maven-release-plugin] prepare for next development iteration 2022-03-27 17:01:59 +02:00
6859f8db36 [maven-release-plugin] prepare release pmd_releases/6.44.0 2022-03-27 17:01:54 +02:00
55c089da5f Merge pull request #3855 from adangel:issue-3850
[java] Fix ImmutableField with conditionally assignment in ctors #3855
2022-03-27 16:22:03 +02:00
6c3fcc6374 Merge pull request #3854 from adangel:issue-3851
[java] Fix #3851 - ClassWithOnlyPrivateConstructorsShouldBeFinal #3854
2022-03-27 16:18:02 +02:00
b22990a668 [java] Fix ImmutableField with conditionally assignment in ctors
Fixes #3850
2022-03-17 11:56:27 +01:00
4a805f4284 [java] Fix ClassWithOnlyPrivateConstructorsShouldBeFinal with multiple
classes

Fixes #3851
2022-03-17 11:14:54 +01:00
19cba367f9 [java] Simplify ASTPatternTest
Backported from pmd/7.0.x
2022-03-10 16:45:37 +01:00
937eb90a70 [java] Remove support for Java 16 Preview 2022-03-10 15:41:01 +01:00
b769594fc7 [java] Update UnnecessaryImportRule for @link in @snippet javadoc 2022-03-10 15:25:53 +01:00
de21986ac3 [java] Add Java 18 Preview Tree Dump Test 2022-03-10 14:56:45 +01:00
1e042ce4d0 [java] Fix unit tests for new version 18 2022-03-10 12:22:24 +01:00
b3ab5f0c40 [java] Add Java 18 language version 2022-03-10 12:00:13 +01:00
80e1265fa1 Misspelling rule name only causes warning now 2022-03-05 15:22:25 +01:00
5dc2774c0a Make PMDTaskImpl use PmdAnalysis 2022-03-05 15:02:24 +01:00
b806954d88 Add deprecations 2022-03-05 14:28:25 +01:00