Skip to content

Commit

Permalink
customised NumberOfChildren and CouplingBetweenObjects, to block the …
Browse files Browse the repository at this point in the history
…future expanding and handle bypassing the current status.
  • Loading branch information
Moustafa-Elgammal committed Jun 2, 2024
1 parent c633b6f commit 35ab149
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions phpmd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,24 @@
<exclude name="LongVariable"/>
</rule>

<rule ref="rulesets/design.xml" />
<rule ref="rulesets/design.xml">
<exclude name="NumberOfChildren"/>
<exclude name="CouplingBetweenObjects"/>
</rule>

<rule ref="rulesets/design.xml/CouplingBetweenObjects">
<properties>
<property name="maximum" value="28" />
</properties>
</rule>

<rule ref="rulesets/design.xml/NumberOfChildren">
<properties>
<property name="minimum" value="101" />
</properties>
</rule>

<rule ref="rulesets/cleancode.xml" >
<rule ref="rulesets/cleancode.xml">
<exclude name="ElseExpression"/>
<exclude name="StaticAccess"/>
</rule>
Expand Down

0 comments on commit 35ab149

Please sign in to comment.