Commit Graph

7794 Commits

Author SHA1 Message Date
9b3e76f86a Update pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/bestpractices/xml/JUnitTestsShouldIncludeAssert.xml [skip ci] 2023-05-19 10:12:44 +02:00
673681d7e4 Merge branch 'master' into issue4503 2023-05-01 15:27:34 -03:00
b79e6bd92b [release] prepare for next development iteration 2023-04-29 23:39:34 +02:00
a97e108269 [release] prepare release pmd_releases/7.0.0-rc2 2023-04-29 23:39:28 +02:00
e493db664e Merge branch 'master' into pr-4501 2023-04-29 22:42:31 +02:00
4a34de594f Ensure #3858 is fixed
Fix #3858
2023-04-28 11:45:02 +02:00
08f22c6650 Ensure #3642 is fixed
Fix #3642
2023-04-28 11:42:30 +02:00
e9b30fab94 Ensure #3848 is fixed
Fix #3848
2023-04-28 11:34:59 +02:00
4ab49af693 Ensure #3843 is fixed
Fix #3843
2023-04-28 11:31:46 +02:00
cef70329f1 Ensure #1455 is fixed
Fix #1455
2023-04-28 11:28:27 +02:00
9ecc1a84ed [doc] UnusedLocalVariable with multiple for loop indices
Closes #4518
2023-04-28 09:29:12 +02:00
429f0f076a [doc] UnusedLocalVariable with try-with-resources and compound statements
Closes #4516
Closes #4617
2023-04-28 09:16:28 +02:00
157cac9218 [doc] CommentRequired - doc changed behavior 2023-04-27 20:37:54 +02:00
daf574a888 [java] AvoidLiteralsInIfCondition - add test case for #4514
Closes #4514
2023-04-27 19:59:24 +02:00
afe1613c93 [java] UselessOperationOnImmutable - add test case for #4513
Closes #4513
2023-04-27 11:26:38 +02:00
b92a8e71db [doc] ImplicitSwitchFallThrough - case statements are reported
Refs #3123
2023-04-27 11:02:33 +02:00
8c8ba41b20 [doc] CommentSize: mention the behavior change of #4369 explicitly 2023-04-27 10:49:26 +02:00
bd13b3915c [doc] ShortVariable now also reports short enum constant names
Refs #3123
2023-04-27 10:33:18 +02:00
bebe05bd8e [doc] Update release notes (#4512)
Closes #4512
2023-04-27 10:13:37 +02:00
47252be306 [java] LocalVariableCouldBeFinal - update test case (#3122) 2023-04-27 10:01:13 +02:00
40aa75aae8 [doc] Update release notes (#4511)
Closes #4511
2023-04-27 09:59:01 +02:00
3fab198010 [java] SwitchDensityRule - use common report level property for "minimum"
While we calculate the ratio between number of statements and number of labels,
we shouldn't pretend that this is an exact rule - it's anyway a best guess,
that high switch density is a problem. I don't think, it makes a big difference
between 10.2 and 10. You e.g. want to report, when the density is bigger than 10
or bigger than 5. We don't need the report level accuracy here.

Refs #3123
2023-04-27 09:06:01 +02:00
90642972ab [java] AvoidReassigningLoopVariables - update test case, document differences
Refs #4500
Refs #3123
2023-04-27 08:35:53 +02:00
c2b18ce229 Ensure #1480 is fixed
Fix #1480
2023-04-25 21:50:59 +02:00
c4e0586dd4 Ensure #1563 is fixed
Fix #1563
2023-04-25 21:47:04 +02:00
8b5aba41fe [java] ImplicitSwitchFallThrough: Update test description 2023-04-25 20:27:39 +02:00
e653df6214 fix issue4503 2023-04-25 21:41:51 +08:00
ff026ce827 Fix #4505 2023-04-24 17:48:27 +02:00
920386d4bd Merge branch 'pr-4488' 2023-04-23 19:11:07 -03:00
3c7675ac58 Simplify check
- Move all annotation to the set, not only TestNG's
2023-04-23 19:06:27 -03:00
622ba91f94 Merge branch 'pr-4494' 2023-04-23 19:01:38 -03:00
fa7143b8de add annotations 2023-04-23 15:12:14 +08:00
7034d40cc8 Update UnnecessaryConstructor.xml 2023-04-23 14:37:46 +08:00
d457cce9c5 Update UnnecessaryConstructorRule.java 2023-04-23 14:28:19 +08:00
899da418e2 Merge branch 'pr-4495' 2023-04-22 00:59:47 -03:00
c487043a5c Merge pull request #4489 from adangel/java-immutable-field-ignoredannot
[java] ImmutableField: Remove deprecated property "ignoredAnnotations"
2023-04-22 00:55:05 -03:00
add3c46179 Update UnnecessaryConstructorRule.java 2023-04-21 16:13:29 +08:00
cced58c9a0 fix issue4493 2023-04-21 16:01:34 +08:00
2f0d83f98d fix issue4487 2023-04-21 15:33:21 +08:00
d9a98b9f9a [java] ImmutableField - remove @Getter
This fixes a potential false negative when @Getter is used.
See discussion on #4474
2023-04-20 14:49:36 +02:00
990fb94845 [java] ImmutableField: Remove deprecated property "ignoredAnnotations" 2023-04-20 14:39:51 +02:00
1a488c79a4 Update TestFrameworksUtil.java 2023-04-19 17:01:56 +08:00
38b541f896 Merge branch 'master' into issue-2501-antlr-doc 2023-04-19 00:22:59 -03:00
1789014dc6 [doc] Update release notes (#4483)
Closes #4483
2023-04-18 20:18:32 +02:00
66ddd5617f Apply feedback 2023-04-17 11:10:55 +02:00
0a99c28bef [java] ImmutableField: False positive with lombok (fixes #4254) 2023-04-15 14:22:56 +02:00
bdacd38437 [core] Move AntlrTokenizer and JavaCCTokenizer into impl packages 2023-04-13 20:32:53 +02:00
7a89f550d9 [java] Fix rule doc for SingularField
Closes pmd/pmd.github.io#14
Co-authored-by: Zustin <87302257+Zustin@users.noreply.github.com>
2023-04-04 18:30:00 +02:00
36efe64586 Merge pull request #4450 from mohui1999:master
[java] Fix #4449 AvoidAccessibilityAlteration: Correctly handle Lambda expressions in PrivilegedAction scenarios #4450
2023-04-03 20:17:12 +02:00
3052e0fac5 [java] Update rule test description (#4449) 2023-04-03 20:12:19 +02:00