This repository has been archived by the owner on Nov 20, 2024. It is now read-only.
forked from javaparser/javaparser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruleset.xml
144 lines (144 loc) · 5.25 KB
/
ruleset.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="Default Maven PMD Plugin Ruleset">
<description>
The 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
</description>
<rule ref="rulesets/java/imports.xml/DontImportJavaLang">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/strings.xml/StringToString">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/basic.xml/BigIntegerInstantiation">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/migrating.xml/IntegerInstantiation">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/imports.xml/DuplicateImports">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/design.xml/SimplifyBooleanExpressions">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/finalizers.xml/EmptyFinalizer">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/migrating.xml/ByteInstantiation">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/imports.xml/TooManyStaticImports">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/basic.xml/AvoidUsingOctalValues">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/design.xml/EqualsNull">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/basic.xml/ClassCastExceptionWithToArray">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/basic.xml/AvoidMultipleUnaryOperators">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/naming.xml/AvoidDollarSigns">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/design.xml/ClassWithOnlyPrivateConstructorsShouldBeFinal">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/basic.xml/BooleanInstantiation">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/naming.xml/NoPackage">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/design.xml/CompareObjectsWithEquals">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/finalizers.xml/FinalizeOnlyCallsSuperFinalize">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/basic.xml/JumbledIncrementer">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/design.xml/PositionLiteralsFirstInComparisons">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/strings.xml/UseStringBufferLength">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/controversial.xml/DontImportSun">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/finalizers.xml/FinalizeOverloaded">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/design.xml/AvoidProtectedFieldInFinalClass">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/basic.xml/ReturnFromFinallyBlock">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/strings.xml/UnnecessaryCaseChange">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/finalizers.xml/FinalizeShouldBeProtected">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/controversial.xml/SuspiciousOctalEscape">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/basic.xml/AvoidThreadGroup">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/naming.xml/ClassNamingConventions">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/controversial.xml/AvoidUsingNativeCode">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/finalizers.xml/FinalizeDoesNotCallSuperFinalize">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/migrating.xml/ShortInstantiation">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/basic.xml/UnconditionalIfStatement">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/basic.xml/AvoidDecimalLiteralsInBigDecimalConstructor">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/basic.xml/MisplacedNullCheck">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/naming.xml/SuspiciousEqualsMethodName">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/design.xml/IdempotentOperations">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/migrating.xml/LongInstantiation">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/imports.xml/ImportFromSamePackage">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/design.xml/SimplifyConditional">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/finalizers.xml/AvoidCallingFinalize">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/design.xml/UseCollectionIsEmpty">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/naming.xml/SuspiciousHashcodeMethodName">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/basic.xml/BrokenNullCheck">
<priority>2</priority>
</rule>
</ruleset>