This repository has been archived by the owner on Sep 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
PMDRules.xml
82 lines (81 loc) · 3.13 KB
/
PMDRules.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
<?xml version="1.0"?>
<ruleset name="ecsemanticrep"
xmlns="http://pmd.sf.net/ruleset/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
<description>Ignored rules</description>
<rule ref="rulesets/java/basic.xml">
<exclude name="BigIntegerInstantiation"/>
<exclude name="EmptyCatchBlock"/>
</rule>
<rule ref="rulesets/java/codesize.xml">
<exclude name="TooManyFields"/>
<exclude name="TooManyMethods"/>
<exclude name="ExcessiveParameterList"/>
<exclude name="CyclomaticComplexity"/>
<exclude name="ModifiedCyclomaticComplexity"/>
<exclude name="StdCyclomaticComplexity"/>
<exclude name="ExcessiveClassLength"/>
<exclude name="ExcessivePublicCount"/>
</rule>
<rule ref="rulesets/java/naming.xml">
<exclude name="ShortVariable"/>
<exclude name="LongVariable"/>
<exclude name="AbstractNaming"/>
<exclude name="ShortMethodName"/>
<!--exclude name="MethodNamingConventions"/-->
</rule>
<rule ref="rulesets/java/logging-java.xml">
<exclude name="LoggerIsNotStaticFinal" />
<exclude name="GuardLogStatementJavaUtil" />
</rule>
<rule ref="rulesets/java/braces.xml">
</rule>
<rule ref="rulesets/java/design.xml">
<exclude name="ConfusingTernary"/>
<exclude name="ImmutableField"/>
<exclude name="SimpleDateFormatNeedsLocale"/>
<exclude name="ConstructorCallsOverridableMethod"/>
<exclude name="UncommentedEmptyConstructor"/>
<!-- <exclude name="NullAssignmentRule”/> -->
<exclude name="AvoidSynchronizedAtMethodLevel"/>
<exclude name="AvoidReassigningParameters"/>
<exclude name="UseLocaleWithCaseConversions"/>
<exclude name="AvoidDeeplyNestedIfStmts"/>
<exclude name="AssignmentToNonFinalStatic"/>
<exclude name="CloseResource"/>
<exclude name="FieldDeclarationsShouldBeAtStartOfClass"/>
<exclude name="GodClass"/>
</rule>
<!-- <rule ref="rulesets/java/migrating.xml">
</rule> -->
<rule ref="rulesets/java/strings.xml">
<exclude name="StringInstantiation"/>
</rule>
<rule ref="rulesets/java/typeresolution.xml">
<exclude name="SignatureDeclareThrowsException"/>
</rule>
<rule ref="rulesets/java/controversial.xml">
<exclude name="DataflowAnomalyAnalysis"/>
<exclude name="OnlyOneReturn"/>
<exclude name="CallSuperInConstructor"/>
<!-- <exclude name="NullAssignmentRule"/> -->
<exclude name="NullAssignment"/>
<exclude name="UnnecessaryParentheses"/>
<exclude name="AtLeastOneConstructor"/>
<exclude name="UseObjectForClearerAPI"/>
</rule>
<rule ref="rulesets/java/unusedcode.xml">
</rule>
<rule ref="rulesets/java/design.xml/AvoidDeeplyNestedIfStmts">
<properties>
<property name="problemDepth" value="4"/>
</properties>
</rule>
<!--rule ref="rulesets/java/codesize.xml/CyclomaticComplexity">
<properties>
<property name="reportLevel" value="10"/>
</properties>
</rule-->
</ruleset>