forked from DigitalKwarts/classy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpmd.ruleset.xml
26 lines (22 loc) · 875 Bytes
/
phpmd.ruleset.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
<?xml version="1.0"?>
<ruleset name="Classy">
<!-- Unused code. -->
<rule ref="vendor/phpmd/phpmd/src/main/resources/rulesets/unusedcode.xml" />
<!-- Design. -->
<rule ref="vendor/phpmd/phpmd/src/main/resources/rulesets/design.xml" />
<!-- Naming. -->
<rule ref="vendor/phpmd/phpmd/src/main/resources/rulesets/naming.xml">
<exclude name="ShortVariable"/>
</rule>
<rule ref="vendor/phpmd/phpmd/src/main/resources/rulesets/naming.xml/ShortVariable">
<properties>
<property name="exceptions" value="wp,id,ID" />
</properties>
</rule>
<!-- Code size. -->
<rule ref="vendor/phpmd/phpmd/src/main/resources/rulesets/codesize.xml" />
<!-- Clean code. -->
<rule ref="vendor/phpmd/phpmd/src/main/resources/rulesets/cleancode.xml">
<exclude name="StaticAccess"/>
</rule>
</ruleset>