forked from ringcentral/jagger8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pmd-rulesets.xml
86 lines (69 loc) · 6.47 KB
/
pmd-rulesets.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
<?xml version="1.0"?>
<ruleset name="PMD-Rules">
<description>
The rulesets we want to use in pmd. For a detailed description of pmd rulesets: http://pmd.sourceforge.net/rules/index.html
</description>
<rule ref="rulesets/java/basic.xml/AvoidBranchingStatementAsLastInLoop"> <priority>2</priority></rule>
<rule ref="rulesets/java/basic.xml/BooleanInstantiation"> <priority>5</priority></rule>
<rule ref="rulesets/java/basic.xml/BrokenNullCheck"> <priority>2</priority></rule>
<rule ref="rulesets/java/basic.xml/CollapsibleIfStatements"> <priority>5</priority></rule>
<rule ref="rulesets/java/basic.xml/DoubleCheckedLocking"> <priority>5</priority></rule>
<rule ref="rulesets/java/basic.xml/ForLoopShouldBeWhileLoop"> <priority>5</priority></rule>
<rule ref="rulesets/java/basic.xml/JumbledIncrementer"> <priority>5</priority></rule>
<rule ref="rulesets/java/basic.xml/MisplacedNullCheck"> <priority>2</priority></rule>
<rule ref="rulesets/java/basic.xml/OverrideBothEqualsAndHashcode"> <priority>1</priority></rule>
<rule ref="rulesets/java/basic.xml/ReturnFromFinallyBlock"> <priority>5</priority></rule>
<rule ref="rulesets/java/basic.xml/UnconditionalIfStatement"> <priority>5</priority></rule>
<rule ref="rulesets/java/empty.xml/EmptyCatchBlock"> <priority>1</priority></rule>
<rule ref="rulesets/java/empty.xml/EmptyFinallyBlock"> <priority>5</priority></rule>
<rule ref="rulesets/java/empty.xml/EmptyIfStmt"> <priority>1</priority></rule>
<rule ref="rulesets/java/empty.xml/EmptyStatementNotInLoop"> <priority>5</priority></rule>
<rule ref="rulesets/java/empty.xml/EmptyStaticInitializer"> <priority>5</priority></rule>
<rule ref="rulesets/java/empty.xml/EmptySwitchStatements"> <priority>5</priority></rule>
<rule ref="rulesets/java/empty.xml/EmptySynchronizedBlock"> <priority>5</priority></rule>
<rule ref="rulesets/java/empty.xml/EmptyTryBlock"> <priority>5</priority></rule>
<rule ref="rulesets/java/empty.xml/EmptyWhileStmt"> <priority>5</priority></rule>
<rule ref="rulesets/java/clone.xml/CloneMethodMustImplementCloneable"> <priority>1</priority></rule>
<rule ref="rulesets/java/clone.xml/CloneThrowsCloneNotSupportedException"> <priority>5</priority></rule>
<rule ref="rulesets/java/clone.xml/ProperCloneImplementation"> <priority>5</priority></rule>
<rule ref="rulesets/java/codesize.xml/ExcessiveClassLength"> <priority>5</priority></rule>
<rule ref="rulesets/java/codesize.xml/ExcessiveMethodLength"> <priority>5</priority></rule>
<rule ref="rulesets/java/codesize.xml/ExcessiveParameterList"> <priority>5</priority></rule>
<rule ref="rulesets/java/codesize.xml/ExcessivePublicCount"> <priority>5</priority></rule>
<rule ref="rulesets/java/codesize.xml/TooManyFields"> <priority>5</priority></rule>
<rule ref="rulesets/java/controversial.xml/UnnecessaryConstructor"> <priority>5</priority></rule>
<rule ref="rulesets/java/controversial.xml/NullAssignment"> <priority>5</priority></rule>
<rule ref="rulesets/java/coupling.xml/CouplingBetweenObjects"> <priority>5</priority></rule>
<rule ref="rulesets/java/coupling.xml/LooseCoupling"> <priority>5</priority></rule>
<rule ref="rulesets/java/design.xml/SimplifyBooleanReturns"> <priority>3</priority></rule>
<rule ref="rulesets/java/design.xml/SimplifyBooleanExpressions"> <priority>3</priority></rule>
<rule ref="rulesets/java/design.xml/SwitchStmtsShouldHaveDefault"> <priority>3</priority></rule>
<rule ref="rulesets/java/design.xml/CloseResource"> <priority>3</priority></rule>
<rule ref="rulesets/java/design.xml/FinalFieldCouldBeStatic"> <priority>3</priority></rule>
<rule ref="rulesets/java/design.xml/CompareObjectsWithEquals"> <priority>3</priority></rule>
<rule ref="rulesets/java/design.xml/UseCollectionIsEmpty"> <priority>3</priority></rule>
<rule ref="rulesets/java/design.xml/ReturnEmptyArrayRatherThanNull"> <priority>3</priority></rule>
<rule ref="rulesets/java/finalizers.xml/EmptyFinalizer"> <priority>5</priority></rule>
<rule ref="rulesets/java/finalizers.xml/FinalizeOnlyCallsSuperFinalize"> <priority>5</priority></rule>
<rule ref="rulesets/java/finalizers.xml/FinalizeOverloaded"> <priority>5</priority></rule>
<rule ref="rulesets/java/finalizers.xml/FinalizeDoesNotCallSuperFinalize"> <priority>5</priority></rule>
<rule ref="rulesets/java/finalizers.xml/FinalizeShouldBeProtected"> <priority>5</priority></rule>
<rule ref="rulesets/java/finalizers.xml/AvoidCallingFinalize"> <priority>5</priority></rule>
<rule ref="rulesets/java/imports.xml/DuplicateImports"> <priority>1</priority></rule>
<rule ref="rulesets/java/imports.xml/DontImportJavaLang"> <priority>5</priority></rule>
<rule ref="rulesets/java/imports.xml/UnusedImports"> <priority>1</priority></rule>
<rule ref="rulesets/java/imports.xml/ImportFromSamePackage"> <priority>5</priority></rule>
<rule ref="rulesets/java/strings.xml/StringToString"> <priority>1</priority></rule>
<rule ref="rulesets/java/strings.xml/StringInstantiation"> <priority>5</priority></rule>
<rule ref="rulesets/java/sunsecure.xml/MethodReturnsInternalArray"> <priority>5</priority></rule>
<rule ref="rulesets/java/sunsecure.xml/ArrayIsStoredDirectly"> <priority>5</priority></rule>
<rule ref="rulesets/java/typeresolution.xml/LooseCoupling"> <priority>3</priority></rule>
<rule ref="rulesets/java/unusedcode.xml/UnusedLocalVariable"> <priority>1</priority></rule>
<rule ref="rulesets/java/unusedcode.xml/UnusedPrivateField"> <priority>1</priority></rule>
<rule ref="rulesets/java/unusedcode.xml/UnusedPrivateMethod"> <priority>1</priority></rule>
<rule ref="rulesets/java/unusedcode.xml/UnusedFormalParameter"> <priority>1</priority></rule>
<rule ref="rulesets/java/unnecessary.xml/UnnecessaryConversionTemporary"> <priority>5</priority></rule>
<rule ref="rulesets/java/unnecessary.xml/UnnecessaryFinalModifier"> <priority>5</priority></rule>
<rule ref="rulesets/java/unnecessary.xml/UnnecessaryReturn"> <priority>5</priority></rule>
<rule ref="rulesets/java/unnecessary.xml/UselessOverridingMethod"> <priority>5</priority></rule>
</ruleset>