Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

Commit b1d1291

Browse files
authored
Create phpmd.xml
1 parent 52841a8 commit b1d1291

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

phpmd.xml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<ruleset name="Code Size Rules"
3+
xmlns="http://pmd.sf.net/ruleset/1.0.0"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
6+
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
7+
8+
<description>Simples PHP Mess Detector</description>
9+
10+
<rule ref="rulesets/cleancode.xml">
11+
<exclude name="StaticAccess"/>
12+
<exclude name="BooleanArgumentFlag"/>
13+
</rule>
14+
15+
<rule ref="rulesets/codesize.xml">
16+
<exclude name="TooManyPublicMethods"/>
17+
</rule>
18+
<rule ref="rulesets/codesize.xml/TooManyPublicMethods">
19+
<properties>
20+
<property name="maxmethods" value="20"/>
21+
</properties>
22+
</rule>
23+
<rule ref="rulesets/codesize.xml/ExcessiveMethodLength">
24+
<properties>
25+
<property name="minimum" value="100"/>
26+
</properties>
27+
</rule>
28+
29+
<rule ref="rulesets/controversial.xml">
30+
<exclude name="CamelCaseVariableName"/>
31+
</rule>
32+
33+
<rule ref="rulesets/design.xml"/>
34+
<rule ref="rulesets/design.xml/CouplingBetweenObjects">
35+
<properties>
36+
<property name="minimum" value="15"/>
37+
</properties>
38+
</rule>
39+
40+
<rule ref="rulesets/naming.xml">
41+
<exclude name="ShortVariable"/>
42+
<exclude name="LongVariable"/>
43+
<exclude name="ShortMethodName"/>
44+
</rule>
45+
<rule ref="rulesets/naming.xml/ShortVariable">
46+
<properties>
47+
<property name="minimum" value="2"/>
48+
</properties>
49+
</rule>
50+
<rule ref="rulesets/naming.xml/LongVariable">
51+
<properties>
52+
<property name="maximum" value="30"/>
53+
</properties>
54+
</rule>
55+
<rule ref="rulesets/naming.xml/ShortMethodName">
56+
<properties>
57+
<property name="minimum" value="2"/>
58+
</properties>
59+
</rule>
60+
<rule ref="rulesets/naming.xml/BooleanGetMethodName">
61+
<properties>
62+
<property name="checkParameterizedMethods" value="true"/>
63+
</properties>
64+
</rule>
65+
66+
<rule ref="rulesets/unusedcode.xml"/>
67+
68+
</ruleset>

0 commit comments

Comments
 (0)