Commit Graph

3775 Commits

Author SHA1 Message Date
Clément Fournier
e6054e4b65 Add another test case for java 2022-05-01 18:09:04 +02:00
Clément Fournier
b328bc5fdc Add more cjk and exotic scripts, also to JS
Fix #2605
2022-05-01 17:47:11 +02:00
Clément Fournier
98f44b7e3f Allow Phonetic Extensions block in java
Fix #3423
2022-05-01 17:31:52 +02:00
Andreas Dangel
ec64315ad7 [maven-release-plugin] prepare for next development iteration 2022-04-30 09:38:24 +02:00
Andreas Dangel
1d2b40b3c0 [maven-release-plugin] prepare release pmd_releases/6.45.0 2022-04-30 09:38:19 +02:00
Andreas Dangel
c224209d7f [test] Backport NodePrinters.kt from pmd7 2022-04-29 11:38:52 +02:00
Andreas Dangel
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
Andreas Dangel
69c7f4b2ad Merge pull request #3930 from adangel:improve-ArrayIsStoredDirectly
[java] Improve rule ArrayIsStoredDirectly #3930
2022-04-28 14:54:15 +02:00
Andreas Dangel
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
LaLucid
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
LaLucid
e951d6df8f Use a more clear XPath form to replace the former 2022-04-27 04:07:02 +08:00
LaLucid
3841e7d0c9 Revert the original XPath 2022-04-25 06:50:56 +08:00
LaLucid
f1a2a77e64 modify the SimplifiedTernary test 2022-04-25 03:31:19 +08:00
LaLucid
56cc9fc163 make the description simple 2022-04-25 02:35:34 +08:00
LaLucid
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
LaLucid
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
HoshiNoMei
996f81ccce Modify the rule to meet the missing case 2022-04-24 23:36:46 +08:00
Andreas Dangel
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
Andreas Dangel
f27c6453ca [java] ArrayIsStoredDirectly - report assignment rather than formal param
Fixes #3929
2022-04-21 15:15:11 +02:00
Andreas Dangel
0d8373d290 [java] ArrayIsStoredDirectly - fix field access with this
Fixes #1185
2022-04-21 14:48:23 +02:00
Andreas Dangel
5566290821 [java] ArrayIsStoredDirectly - ignore method calls
Fixes #1474
2022-04-21 14:31:20 +02:00
Andreas Dangel
8d5c2e5683 [java] ArrayIsStoredDirectly - fix tree traversal
Fixes #3879
2022-04-21 14:12:47 +02:00
Clément Fournier
9513c505fb checkstyle 2022-04-19 00:30:20 -06:00
Clément Fournier
6f12ed1322 Stop ignoring name "IDENT" 2022-04-19 00:30:20 -06:00
Seth Wilcox
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
Clément Fournier
cdf4944865 Checkstyle 2022-04-15 20:05:04 +02:00
Clément Fournier
c778266294 Update java/CLITest 2022-04-15 19:41:39 +02:00
Clément Fournier
359225ca37 Update ExcludeLinesTest 2022-04-15 19:34:55 +02:00
Clément Fournier
715442b66b Update java/PMDTaskTest to use mocked rules 2022-04-15 19:31:56 +02:00
Andreas Dangel
ddb0ecfceb [java] Fix UseArraysAsList with method calls
- Fixes #3867
2022-04-08 15:30:25 +02:00
Andreas Dangel
674353c716 [java] Catch LinkageError in UselessOverridingMethodRule
Might occur when the auxclasspath is incomplete
2022-04-01 19:19:44 +02:00
Andreas Dangel
be3e941a08 [maven-release-plugin] prepare for next development iteration 2022-03-27 17:01:59 +02:00
Andreas Dangel
6859f8db36 [maven-release-plugin] prepare release pmd_releases/6.44.0 2022-03-27 17:01:54 +02:00
Andreas Dangel
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
Andreas Dangel
6c3fcc6374 Merge pull request #3854 from adangel:issue-3851
[java] Fix #3851 - ClassWithOnlyPrivateConstructorsShouldBeFinal #3854
2022-03-27 16:18:02 +02:00
Andreas Dangel
b22990a668 [java] Fix ImmutableField with conditionally assignment in ctors
Fixes #3850
2022-03-17 11:56:27 +01:00
Andreas Dangel
4a805f4284 [java] Fix ClassWithOnlyPrivateConstructorsShouldBeFinal with multiple
classes

Fixes #3851
2022-03-17 11:14:54 +01:00
Andreas Dangel
19cba367f9 [java] Simplify ASTPatternTest
Backported from pmd/7.0.x
2022-03-10 16:45:37 +01:00
Andreas Dangel
937eb90a70 [java] Remove support for Java 16 Preview 2022-03-10 15:41:01 +01:00
Andreas Dangel
b769594fc7 [java] Update UnnecessaryImportRule for @link in @snippet javadoc 2022-03-10 15:25:53 +01:00
Andreas Dangel
de21986ac3 [java] Add Java 18 Preview Tree Dump Test 2022-03-10 14:56:45 +01:00
Andreas Dangel
1e042ce4d0 [java] Fix unit tests for new version 18 2022-03-10 12:22:24 +01:00
Andreas Dangel
b3ab5f0c40 [java] Add Java 18 language version 2022-03-10 12:00:13 +01:00
Clément Fournier
80e1265fa1 Misspelling rule name only causes warning now 2022-03-05 15:22:25 +01:00
Clément Fournier
5dc2774c0a Make PMDTaskImpl use PmdAnalysis 2022-03-05 15:02:24 +01:00
Clément Fournier
b806954d88 Add deprecations 2022-03-05 14:28:25 +01:00
Clément Fournier
532c81ce7e Merge branch 'master' into pmd6-file-collector 2022-02-27 18:15:30 +01:00
Andreas Dangel
69fb502883 [maven-release-plugin] prepare for next development iteration 2022-02-26 10:01:08 +01:00
Andreas Dangel
dd0ee6190b [maven-release-plugin] prepare release pmd_releases/6.43.0 2022-02-26 10:01:03 +01:00
Clément Fournier
4aa7b56fab Update reference files 2022-02-24 00:02:17 +01:00