Skip to content

Commit 154c6c7

Browse files
committed
Update to PMD 7.17 and add new rules
1 parent bba9aa6 commit 154c6c7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.config/pmd/java/ruleset.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
<rule ref="category/java/codestyle.xml/NoPackage"/>
4343
<rule ref="category/java/codestyle.xml/PrematureDeclaration"/>
4444
<rule ref="category/java/codestyle.xml/UnnecessarySemicolon"/>
45+
<rule ref="category/java/codestyle.xml/VariableCanBeInlined"/>
4546

4647
<rule ref="category/java/design.xml">
4748
<!-- Sometimes abstract classes have just fields -->
@@ -138,6 +139,7 @@
138139
<rule ref="category/java/errorprone.xml/AvoidMultipleUnaryOperators"/>
139140
<rule ref="category/java/errorprone.xml/AvoidUsingOctalValues"/>
140141
<rule ref="category/java/errorprone.xml/BrokenNullCheck"/>
142+
<rule ref="category/java/errorprone.xml/CollectionTypeMismatch"/>
141143
<rule ref="category/java/errorprone.xml/ComparisonWithNaN"/>
142144
<rule ref="category/java/errorprone.xml/DoNotCallGarbageCollectionExplicitly"/>
143145
<rule ref="category/java/errorprone.xml/DontImportSun"/>
@@ -155,7 +157,7 @@
155157
<rule ref="category/java/errorprone.xml/SingletonClassReturningNewInstance"/>
156158
<rule ref="category/java/errorprone.xml/UnconditionalIfStatement"/>
157159
<rule ref="category/java/errorprone.xml/UnnecessaryCaseChange"/>
158-
<rule ref="category/java/errorprone.xml/UselessOperationOnImmutable"/>
160+
<rule ref="category/java/errorprone.xml/UselessPureMethodCall"/>
159161

160162

161163
<rule ref="category/java/multithreading.xml">

0 commit comments

Comments
 (0)