-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathruleset.xml
More file actions
101 lines (95 loc) · 4.03 KB
/
ruleset.xml
File metadata and controls
101 lines (95 loc) · 4.03 KB
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
<?xml version="1.0"?>
<ruleset name="IceCMS2 PHPMD rule set"
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>
IceCMS2 custom rule set
</description>
<rule ref="rulesets/controversial.xml">
<exclude name="Superglobals"/>
<exclude name="CamelCasePropertyName"/>
<exclude name="CamelCaseMethodName"/>
</rule>
<rule ref="rulesets/controversial.xml/CamelCasePropertyName">
<properties>
<property name="allow-underscore"
description="Allow an optional, single underscore at the beginning."
value="true" />
<property name="allow-underscore-test"
description="Is it allowed to have underscores in test method names."
value="true" />
</properties>
</rule>
<rule ref="rulesets/controversial.xml/CamelCaseMethodName">
<properties>
<property name="allow-underscore"
description="Allow an optional, single underscore at the beginning."
value="true" />
<property name="allow-underscore-test"
description="Is it allowed to have underscores in test method names."
value="true" />
</properties>
</rule>
<rule ref="rulesets/design.xml">
<exclude name="CouplingBetweenObjects"/>
<exclude name="NumberOfChildren" />
<exclude name="ExitExpression" />
</rule>
<rule ref="rulesets/codesize.xml">
<exclude name="TooManyFields"/>
<exclude name="ExcessiveMethodLength"/>
<exclude name="CyclomaticComplexity"/>
<exclude name="NPathComplexity"/>
<exclude name="ExcessiveClassComplexity" />
</rule>
<rule ref="rulesets/codesize.xml/TooManyFields">
<properties>
<property name="maxfields" description="The field count reporting threshold" value="24"/>
</properties>
</rule>
<rule ref="rulesets/codesize.xml/ExcessiveMethodLength">
<properties>
<property name="minimum" description="The method size reporting threshold" value="150"/>
</properties>
</rule>
<rule ref="rulesets/codesize.xml/CyclomaticComplexity">
<properties>
<property name="reportLevel" description="The Cyclomatic Complexity reporting threshold" value="30"/>
<property name="showClassesComplexity"
description="Indicate if class average violation should be added to the report"
value="true"/>
<property name="showMethodsComplexity"
description="Indicate if class average violation should be added to the report"
value="true"/>
</properties>
</rule>
<rule ref="rulesets/codesize.xml/NPathComplexity">
<properties>
<property name="minimum" description="The npath reporting threshold" value="1000"/>
</properties>
</rule>
<rule ref="rulesets/codesize.xml/ExcessiveClassComplexity">
<properties>
<property name="maximum" description="The maximum WMC tolerable for a class." value="110"/>
</properties>
</rule>
<rule ref="rulesets/unusedcode.xml"/>
<rule ref="rulesets/naming.xml">
<exclude name="LongClassName"/>
<exclude name="LongVariable"/>
<exclude name="ShortVariable"/>
<exclude name="ShortMethodName"/>
<exclude name="BooleanGetMethodName"/>
</rule>
<rule ref="rulesets/cleancode.xml">
<exclude name="StaticAccess"/>
<exclude name="ElseExpression"/>
<exclude name="IfStatementAssignment"/>
<exclude name="BooleanArgumentFlag"/>
<exclude name="UndefinedVariable"/>
</rule>
</ruleset>