Commit Graph

3758 Commits

Author SHA1 Message Date
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
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
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
532c81ce7e Merge branch 'master' into pmd6-file-collector 2022-02-27 18:15:30 +01:00
69fb502883 [maven-release-plugin] prepare for next development iteration 2022-02-26 10:01:08 +01:00
dd0ee6190b [maven-release-plugin] prepare release pmd_releases/6.43.0 2022-02-26 10:01:03 +01:00
4aa7b56fab Update reference files 2022-02-24 00:02:17 +01:00
a61f1eb404 Fix bug with switch arrows 2022-02-23 22:59:36 +01:00
a7e2a8eb52 Merge branch 'master' into pr-3785 2022-02-20 16:34:07 +01:00
cc1552b4e1 Merge pull request #3780 from oowekyala:issue3374-rule-example
[java] Fix #3374 UseStringBufferForStringAppends rule example #3780
2022-02-19 09:44:17 +01:00
b6dae35c46 Merge pull request #3774 from oowekyala:issue3697-parse-twr
[java] Fix #3697 - lookahead error in concise resource spec #3774
2022-02-19 09:41:51 +01:00
e005a1d20e Merge pull request #3765 from oowekyala:issue278-confusing-ternary
[java] Fix #278 - ConfusingTernary should treat != null as positive
condition #3765
2022-02-18 20:13:33 +01:00
7733be75ff [core] More deprecations around PMD/Report/RuleContext (#3762) 2022-02-18 11:33:05 +01:00
c3aa845a6a Fix js & xml tests 2022-02-14 00:15:51 +01:00
cc834b175e Fix java cli tests 2022-02-13 23:31:30 +01:00
962793cd54 Fix #3374 - UseStringBufferForStringAppends: Wrong example in documentation 2022-02-12 19:03:31 +01:00
f981445f8f Fix last bug 2022-02-11 21:41:34 +01:00
c5f4f3cd49 Fix #3697 - lookahead error in concise resource spec 2022-02-11 21:27:23 +01:00
c85154adfc Fix #278 - make ConfusingTernary treat != null as a positive condition
update release notes
2022-02-08 19:46:04 +01:00
3f5ec00a6b Fix java test 2022-02-06 16:10:12 +01:00
dc19597020 [maven-release-plugin] prepare for next development iteration 2022-01-29 09:53:38 +01:00
391c32589f [maven-release-plugin] prepare release pmd_releases/6.42.0 2022-01-29 09:53:32 +01:00
c0c2c76e49 Merge pull request #3722 from adangel:issue-3721-returnemptycollection
[java] Fix #3721 ReturnEmptyCollectionRatherThanNull false positive with
lambdas #3722

* pr-3722:
  Revert "dogfood - suppress ReturnEmptyCollectionRatherThanNull"
  [java] ReturnEmptyCollectionRatherThanNull - fix false positive for
lambdas
2022-01-20 15:27:06 +01:00
6558167ec1 Merge pull request #3674 from adangel:issue-3639-usestringbufferlength
[java] UseStringBufferLength: false negative with empty string variable
#3674

* pr-3674:
  [java] UseStringBufferLength: false negative with empty string
variable
2022-01-20 15:25:16 +01:00