-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathphpmd-ruleset.xml
42 lines (36 loc) · 1.48 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?xml version="1.0" encoding="UTF-8"?>
<ruleset
name="mmo"
xmlns="http://www.addiks.net/xmlns/pmd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.addiks.net/xmlns/pmd http://files.addiks.de/xmlns/phpmd.xsd"
xsi:noNamespaceSchemaLocation=" http://files.addiks.de/xmlns/phpmd.xsd">
<description>Ruleset for ssorder</description>
<rule ref="rulesets/cleancode.xml">
<rule ref="rulesets/codesize.xml"/>
<rule ref="rulesets/design.xml"/>
<!-- importing naming and excluding ShortVariable to be adjusted after -->
<rule ref="rulesets/naming.xml">
<exclude name="ShortVariable"/>
</rule>
<rule ref="rulesets/unusedcode.xml"/>
<exclude name="StaticAccess"/>
</rule>
<rule ref="rulesets/controversial.xml">
<exclude name="CamelCasePropertyName"/>
</rule>
<rule ref="rulesets/naming.xml/ShortVariable">
<properties>
<property name="minimum" value="2"/>
<property name="exceptions" description="Comma-separated list of exceptions" value="i"/>
</properties>
</rule>
<rule ref="rulesets/controversial.xml/CamelCasePropertyName">
<properties>
<property name="allow-underscore" value="true"/>
</properties>
</rule>
<exclude-pattern>/common/tests/</exclude-pattern>
<exclude-pattern>/frontend/tests/</exclude-pattern>
<exclude-pattern>/console/migrations/</exclude-pattern>
</ruleset>