• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<ruleset  name="Default Maven PMD Plugin Ruleset">
3  <description>
4The default ruleset used by the Maven PMD Plugin, when no other ruleset is specified. It contains the rules of the old (pre PMD 6.0.0) rulesets java-basic, java-empty, java-imports, java-unnecessary, java-unusedcode. This ruleset might be used as a starting point for an own customized ruleset [0]. [0] https://pmd.github.io/latest/pmd_userdocs_understanding_rulesets.html
5</description>
6    <rule ref="rulesets/java/imports.xml/DontImportJavaLang">
7       <priority>2</priority>
8   </rule>
9   <rule ref="rulesets/java/strings.xml/StringToString">
10       <priority>2</priority>
11   </rule>
12   <rule ref="rulesets/java/basic.xml/BigIntegerInstantiation">
13       <priority>2</priority>
14   </rule>
15   <rule ref="rulesets/java/migrating.xml/IntegerInstantiation">
16       <priority>3</priority>
17   </rule>
18   <rule ref="rulesets/java/imports.xml/DuplicateImports">
19       <priority>2</priority>
20   </rule>
21   <rule ref="rulesets/java/design.xml/SimplifyBooleanExpressions">
22       <priority>2</priority>
23   </rule>
24   <rule ref="rulesets/java/finalizers.xml/EmptyFinalizer">
25       <priority>2</priority>
26   </rule>
27   <rule ref="rulesets/java/migrating.xml/ByteInstantiation">
28       <priority>3</priority>
29   </rule>
30   <rule ref="rulesets/java/imports.xml/TooManyStaticImports">
31       <priority>2</priority>
32   </rule>
33   <rule ref="rulesets/java/basic.xml/AvoidUsingOctalValues">
34       <priority>2</priority>
35   </rule>
36   <rule ref="rulesets/java/design.xml/EqualsNull">
37       <priority>2</priority>
38   </rule>
39   <rule ref="rulesets/java/basic.xml/ClassCastExceptionWithToArray">
40       <priority>2</priority>
41   </rule>
42   <rule ref="rulesets/java/basic.xml/AvoidMultipleUnaryOperators">
43       <priority>2</priority>
44   </rule>
45   <rule ref="rulesets/java/naming.xml/AvoidDollarSigns">
46       <priority>2</priority>
47   </rule>
48   <rule ref="rulesets/java/design.xml/ClassWithOnlyPrivateConstructorsShouldBeFinal">
49       <priority>2</priority>
50   </rule>
51   <rule ref="rulesets/java/basic.xml/BooleanInstantiation">
52       <priority>2</priority>
53   </rule>
54   <rule ref="rulesets/java/naming.xml/NoPackage">
55       <priority>2</priority>
56   </rule>
57   <rule ref="rulesets/java/design.xml/CompareObjectsWithEquals">
58       <priority>2</priority>
59   </rule>
60   <rule ref="rulesets/java/finalizers.xml/FinalizeOnlyCallsSuperFinalize">
61       <priority>2</priority>
62   </rule>
63   <rule ref="rulesets/java/basic.xml/JumbledIncrementer">
64       <priority>2</priority>
65   </rule>
66   <rule ref="rulesets/java/design.xml/PositionLiteralsFirstInComparisons">
67       <priority>2</priority>
68   </rule>
69   <rule ref="rulesets/java/strings.xml/UseStringBufferLength">
70       <priority>2</priority>
71   </rule>
72   <rule ref="rulesets/java/controversial.xml/DontImportSun">
73       <priority>2</priority>
74   </rule>
75   <rule ref="rulesets/java/finalizers.xml/FinalizeOverloaded">
76       <priority>2</priority>
77   </rule>
78   <rule ref="rulesets/java/design.xml/AvoidProtectedFieldInFinalClass">
79       <priority>2</priority>
80   </rule>
81   <rule ref="rulesets/java/basic.xml/ReturnFromFinallyBlock">
82       <priority>2</priority>
83   </rule>
84   <rule ref="rulesets/java/strings.xml/UnnecessaryCaseChange">
85       <priority>2</priority>
86   </rule>
87   <rule ref="rulesets/java/finalizers.xml/FinalizeShouldBeProtected">
88       <priority>2</priority>
89   </rule>
90   <rule ref="rulesets/java/controversial.xml/SuspiciousOctalEscape">
91       <priority>2</priority>
92   </rule>
93   <rule ref="rulesets/java/basic.xml/AvoidThreadGroup">
94       <priority>2</priority>
95   </rule>
96   <rule ref="rulesets/java/naming.xml/ClassNamingConventions">
97       <priority>2</priority>
98   </rule>
99   <rule ref="rulesets/java/controversial.xml/AvoidUsingNativeCode">
100       <priority>2</priority>
101   </rule>
102   <rule ref="rulesets/java/finalizers.xml/FinalizeDoesNotCallSuperFinalize">
103       <priority>2</priority>
104   </rule>
105   <rule ref="rulesets/java/migrating.xml/ShortInstantiation">
106       <priority>3</priority>
107   </rule>
108   <rule ref="rulesets/java/basic.xml/UnconditionalIfStatement">
109       <priority>2</priority>
110   </rule>
111   <rule ref="rulesets/java/basic.xml/AvoidDecimalLiteralsInBigDecimalConstructor">
112       <priority>2</priority>
113   </rule>
114   <rule ref="rulesets/java/basic.xml/MisplacedNullCheck">
115       <priority>2</priority>
116   </rule>
117   <rule ref="rulesets/java/naming.xml/SuspiciousEqualsMethodName">
118       <priority>2</priority>
119   </rule>
120   <rule ref="rulesets/java/design.xml/IdempotentOperations">
121       <priority>2</priority>
122   </rule>
123   <rule ref="rulesets/java/migrating.xml/LongInstantiation">
124       <priority>3</priority>
125   </rule>
126   <rule ref="rulesets/java/imports.xml/ImportFromSamePackage">
127       <priority>2</priority>
128   </rule>
129   <rule ref="rulesets/java/design.xml/SimplifyConditional">
130       <priority>2</priority>
131   </rule>
132   <rule ref="rulesets/java/finalizers.xml/AvoidCallingFinalize">
133       <priority>2</priority>
134   </rule>
135   <rule ref="rulesets/java/design.xml/UseCollectionIsEmpty">
136       <priority>2</priority>
137   </rule>
138   <rule ref="rulesets/java/naming.xml/SuspiciousHashcodeMethodName">
139       <priority>2</priority>
140   </rule>
141   <rule ref="rulesets/java/basic.xml/BrokenNullCheck">
142       <priority>2</priority>
143   </rule>
144</ruleset>
145