-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathphpmd.xml
46 lines (46 loc) · 1.43 KB
/
phpmd.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
<?xml version="1.0"?>
<ruleset name="Mess Detector">
<!-- cleancode -->
<rule ref="rulesets/cleancode.xml">
<exclude name="BooleanArgumentFlag"/>
<exclude name="StaticAccess"/>
</rule>
<!-- codesize -->
<rule ref="rulesets/codesize.xml/CyclomaticComplexity">
<properties>
<property name="reportLevel" value="20"/>
</properties>
</rule>
<rule ref="rulesets/codesize.xml/ExcessiveClassComplexity">
<properties>
<property name="maximum" value="70"/>
</properties>
</rule>
<rule ref="rulesets/codesize.xml/NPathComplexity">
<properties>
<!-- TODO: Add auxiliar methods to CLI::table() -->
<property name="minimum" value="1050"/>
</properties>
</rule>
<rule ref="rulesets/codesize.xml/TooManyPublicMethods">
<properties>
<property name="maxmethods" value="20"/>
</properties>
</rule>
<!-- controversial -->
<rule ref="rulesets/controversial.xml"/>
<!-- design -->
<rule ref="rulesets/design.xml">
<exclude name="ExitExpression"/>
</rule>
<!-- naming -->
<rule ref="rulesets/naming.xml/ShortVariable">
<properties>
<property name="minimum" value="2"/>
</properties>
</rule>
<!-- unusedcode -->
<rule ref="rulesets/unusedcode.xml">
<exclude name="UnusedFormalParameter"/>
</rule>
</ruleset>