-
Notifications
You must be signed in to change notification settings - Fork 31
/
phpmd.xml.dist
41 lines (41 loc) · 1.27 KB
/
phpmd.xml.dist
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
<?xml version="1.0"?>
<ruleset name="RealWorld">
<!-- Unused code. -->
<rule ref="rulesets/unusedcode.xml"/>
<!-- Design. -->
<rule ref="rulesets/design.xml">
<exclude name="NumberOfChildren"/>
</rule>
<rule ref="rulesets/design.xml/NumberOfChildren">
<properties>
<property name="minimum" value="20"/>
</properties>
</rule>
<!-- Naming. -->
<rule ref="rulesets/naming.xml">
<exclude name="ShortVariable"/>
<exclude name="LongVariable"/>
</rule>
<!-- Naming - ShortVariable config -->
<rule ref="rulesets/naming.xml/ShortVariable">
<properties>
<property name="exceptions" value="i,id,io,e"/>
</properties>
</rule>
<!-- Naming - LongVariable config -->
<rule ref="rulesets/naming.xml/LongVariable">
<properties>
<property name="maximum" value="32"/>
</properties>
</rule>
<!-- Code size. -->
<rule ref="rulesets/codesize.xml"/>
<!-- Clean code. -->
<rule ref="rulesets/cleancode.xml">
<exclude name="ElseExpression"/>
</rule>
<!-- Controversial. -->
<rule ref="rulesets/controversial.xml"/>
<!-- Excluded files -->
<exclude-pattern>src/DataFixtures/*</exclude-pattern>
</ruleset>