Skip to content

Commit 76da81b

Browse files
author
Roman Syroeshko
committed
Updated Mess Detector configuration from PHPWord.
1 parent f63b7f2 commit 76da81b

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

phpmd.xml.dist

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,24 @@
44
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
55
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
66
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
7-
<rule ref="rulesets/naming.xml"/>
7+
<rule ref="rulesets/naming.xml">
8+
<exclude name="LongVariable" />
9+
</rule>
10+
<rule ref="rulesets/naming.xml/LongVariable">
11+
<properties>
12+
<property name="maximum" value="32" />
13+
</properties>
14+
</rule>
815
<rule ref="rulesets/design.xml/ExitExpression" />
916
<rule ref="rulesets/design.xml/EvalExpression" />
1017
<rule ref="rulesets/design.xml/GotoStatement" />
1118
<rule ref="rulesets/design.xml/DepthOfInheritance" />
19+
<rule ref="rulesets/design.xml/CouplingBetweenObjects">
20+
<!-- AbstractContainer needs more coupling (default: 13) -->
21+
<properties>
22+
<property name="minimum" value="20" />
23+
</properties>
24+
</rule>
1225
<rule ref="rulesets/design.xml/NumberOfChildren">
1326
<!-- AbstractStyle needs more children (default: 15) -->
1427
<properties>

0 commit comments

Comments
 (0)