-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
phpmd.xml
33 lines (33 loc) · 1020 Bytes
/
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
<?xml version="1.0"?>
<ruleset name="Mess Detector">
<!-- cleancode -->
<rule ref="rulesets/cleancode.xml">
<exclude name="BooleanArgumentFlag"/>
<exclude name="ErrorControlOperator"/>
<exclude name="StaticAccess"/>
<exclude name="UndefinedVariable"/>
</rule>
<!-- codesize -->
<rule ref="rulesets/codesize.xml/NPathComplexity">
<properties>
<property name="minimum" value="400"/>
</properties>
</rule>
<!-- controversial -->
<rule ref="rulesets/controversial.xml">
<exclude name="Superglobals"/>
</rule>
<!-- design -->
<rule ref="rulesets/design.xml">
<exclude name="CouplingBetweenObjects"/>
<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"/>
</ruleset>