Skip to content
This repository has been archived by the owner on Dec 10, 2019. It is now read-only.

Commit

Permalink
Merge pull request #3 from uniplaces/phpmd-improvements
Browse files Browse the repository at this point in the history
[RFC][NI] phpmd improvements
  • Loading branch information
Peter Tilsen committed Apr 8, 2016
2 parents b7f78d8 + e28afad commit bec0f3d
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/Uniplaces/Phpmd/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
<rule ref="rulesets/design.xml/DepthOfInheritance">
<priority>5</priority>
<properties>
<property name="minimum" value="5"/>
<property name="minimum" value="6"/>
</properties>
</rule>
<rule ref="rulesets/design.xml/CouplingBetweenObjects">
<priority>5</priority>
<properties>
<property name="minimum" value="50"/>
<property name="minimum" value="80"/>
</properties>
</rule>
<!-- end of DESIGN RULES -->
Expand All @@ -43,7 +43,7 @@
<!-- see http://phpmd.org/rules/naming.html -->
<rule ref="rulesets/naming.xml/ShortVariable">
<properties>
<property name="exceptions" value="id,a,s,r,e,i,j,k,cnt,by,at,to,in"/>
<property name="exceptions" value="id,a,s,r,e,i,j,k,cnt,by,at,to,in,on,en,pt,de,a,b,no"/>
</properties>
</rule>
<rule ref="rulesets/naming.xml/LongVariable">
Expand All @@ -54,7 +54,7 @@
</rule>
<rule ref="rulesets/naming.xml/ShortMethodName">
<properties>
<property name="exceptions" value="id,by,at,to,in"/>
<property name="exceptions" value="id,by,at,to,in,on,en,pt,de,no"/>
</properties>
</rule>
<rule ref="rulesets/naming.xml/ConstructorWithNameAsEnclosingClass"/>
Expand All @@ -78,23 +78,23 @@
<!-- see http://phpmd.org/rules/codesize.html -->
<rule ref="rulesets/codesize.xml/ExcessiveClassComplexity">
<properties>
<property name="maximum" value="90"/>
<property name="maximum" value="150"/>
</properties>
</rule>

<rule ref="rulesets/codesize.xml/CyclomaticComplexity">
<properties>
<property name="reportLevel" value="80"/>
<property name="reportLevel" value="100"/>
</properties>
</rule>
<rule ref="rulesets/codesize.xml/NPathComplexity">
<properties>
<property name="minimum" value="280"/>
<property name="minimum" value="350"/>
</properties>
</rule>
<rule ref="rulesets/codesize.xml/ExcessiveMethodLength">
<properties>
<property name="minimum" value="220"/>
<property name="minimum" value="280"/>
<property name="ignore-whitespace" value="true"/>
</properties>
</rule>
Expand All @@ -113,19 +113,19 @@
<rule ref="rulesets/codesize.xml/ExcessivePublicCount">
<priority>2</priority>
<properties>
<property name="minimum" value="20"/>
<property name="minimum" value="25"/>
</properties>
</rule>
<rule ref="rulesets/codesize.xml/TooManyFields">
<priority>4</priority>
<properties>
<property name="maxfields" value="30"/>
<property name="maxfields" value="35"/>
</properties>
</rule>
<rule ref="rulesets/codesize.xml/TooManyMethods">
<priority>3</priority>
<properties>
<property name="maxmethods" value="30"/>
<property name="maxmethods" value="35"/>
</properties>
</rule>
<!-- end of CODE SIZE RULES -->
Expand Down

0 comments on commit bec0f3d

Please sign in to comment.