forked from eckinox/tinymce-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.phpmd.xml
More file actions
60 lines (54 loc) · 1.91 KB
/
.phpmd.xml
File metadata and controls
60 lines (54 loc) · 1.91 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
name="Eckinox PHPMD"
xmlns="http://pmd.sf.net/ruleset/1.0.0"
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0
http://pmd.sf.net/ruleset_xml_schema.xsd"
xsi:noNamespaceSchemaLocation="
http://pmd.sf.net/ruleset_xml_schema.xsd">
<description>
Eckinox's PHPMD Ruleset
</description>
<!-- Import entire rulesets -->
<rule ref="rulesets/controversial.xml"/>
<rule ref="rulesets/unusedcode.xml">
<exclude name="UnusedFormalParameter"/>
</rule>
<!-- Import codesize ruleset with common configs for Symfony entities -->
<rule ref="rulesets/codesize.xml">
<exclude name="CyclomaticComplexity"/>
<exclude name="NPathComplexity"/>
<exclude name="ExcessiveParameterList"/>
<exclude name="ExcessivePublicCount"/>
<exclude name="TooManyFields"/>
<exclude name="TooManyMethods"/>
<exclude name="TooManyPublicMethods"/>
<exclude name="ExcessiveClassComplexity"/>
<exclude name="ExcessiveMethodLength"/>
</rule>
<rule ref="rulesets/codesize.xml/ExcessiveMethodLength">
<properties>
<property name="minimum" value="200"/>
</properties>
</rule>
<!-- Import cleancode ruleset with a few allowances -->
<rule ref="rulesets/cleancode.xml">
<exclude name="IfStatementAssignment"/>
<exclude name="BooleanArgumentFlag"/>
<exclude name="ElseExpression"/>
<exclude name="StaticAccess"/>
<exclude name="MissingImport"/>
</rule>
<!-- Import design ruleset with higher CouplingBetweenObjects limit -->
<rule ref="rulesets/design.xml">
<exclude name="NumberOfChildren"/>
<exclude name="CouplingBetweenObjects"/>
</rule>
<!-- Import naming ruleset with common configs for Symfony -->
<rule ref="rulesets/naming.xml">
<exclude name="LongClassName"/>
<exclude name="ShortVariable"/>
<exclude name="LongVariable"/>
<exclude name="ShortMethodName"/>
</rule>
</ruleset>