-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
phpmd.xml
35 lines (35 loc) · 1.04 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
<?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/TooManyPublicMethods">
<properties>
<property name="maxmethods" value="30"/>
</properties>
</rule>
<!-- controversial -->
<rule ref="rulesets/controversial.xml">
<exclude name="CamelCasePropertyName"/>
<exclude name="Superglobals"/>
</rule>
<!-- design -->
<rule ref="rulesets/design.xml/CouplingBetweenObjects">
<properties>
<property name="maximum" value="60"/>
</properties>
</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>