-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDigital_Platform_PMD_Ruleset.xml
84 lines (78 loc) · 3.01 KB
/
Digital_Platform_PMD_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
<?xml version="1.0"?>
<ruleset xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
name="pmdrules"
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd">
<description>
The standard ruleset.
</description>
<rule ref="rulesets/java/basic.xml"/>
<rule ref="rulesets/java/design.xml">
<exclude name="AvoidDeeplyNestedIfStmts"/>
<exclude name="AvoidSynchronizedAtMethodLevel"/>
<exclude name="ImmutableField" />
<exclude name="CloseResource" />
<exclude name="PreserveStackTrace" />
</rule>
<rule ref="rulesets/java/imports.xml">
<exclude name="TooManyStaticImports" />
</rule>
<rule ref="rulesets/java/imports.xml/TooManyStaticImports">
<properties>
<property name="maximumStaticImports" value="20" />
</properties>
</rule>
<rule ref="rulesets/java/unusedcode.xml"/>
<rule ref="rulesets/java/strings.xml">
<exclude name="AvoidDuplicateLiterals"/>
</rule>
<rule ref="rulesets/java/strings.xml/AvoidDuplicateLiterals">
<properties>
<property name="skipAnnotations" value="true"/>
</properties>
</rule>
<rule ref="rulesets/java/codesize.xml">
<exclude name="ExcessivePublicCount" />
<exclude name="TooManyFields" />
<exclude name="TooManyMethods"/>
<exclude name="CyclomaticComplexity"/>
<exclude name="NPathComplexity"/>
<exclude name="ExcessiveMethodLength"/>
<exclude name="ExcessiveClassLength"/>
</rule>
<rule ref="rulesets/java/strictexception.xml"/>
<!--<rule name="AvoidDeeplyNestedIfStmts" since="1.0" message="Deeply nested if..then statements are hard to read" class="net.sourceforge.pmd.rules.AvoidDeeplyNestedIfStmtsRule" externalInfoUrl="http://pmd.sourceforge.net/rules/design.html#AvoidDeeplyNestedIfStmts">
<description>
Deeply nested if..then statements are hard to read.
</description>
<priority>3</priority>
<properties>
<property name="problemDepth" description="The if statement depth reporting threshold" value="4"/>
</properties>
</rule>
<rule name="TooManyFields"
since="3.0"
message="Too many fields"
class="net.sourceforge.pmd.rules.design.TooManyFields"
externalInfoUrl="http://pmd.sourceforge.net/rules/codesize.html#TooManyFields">
<description>
Classes that have too many fields could be redesigned to have fewer fields, possibly
through some nested object grouping of some of the information. For example, a class with
city/state/zip fields could instead have one Address field.
</description>
<priority>3</priority>
<properties>
<property name="maxfields" description="The field count reporting threshold " value="60"/>
</properties>
<example>
<![CDATA[
public class Person {
String one;
int two;
int three;
[... many more public fields ...]
}
]]>
</example>
</rule>-->
</ruleset>