Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
unify TooManyMethods rules to same pattern and count
Browse files Browse the repository at this point in the history
no problem with a class containing only a bunch of public methods
  • Loading branch information
Gummibeer committed Sep 14, 2020
1 parent 3cbe200 commit d4ce9d0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions configs/phpmd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,21 @@
</rule>

<rule ref="rulesets/codesize.xml">
<exclude name="TooManyMethods" />
<exclude name="TooManyPublicMethods" />
<exclude name="ExcessiveClassComplexity" />
<exclude name="CyclomaticComplexity" />
<exclude name="NPathComplexity" />
</rule>
<rule ref="rulesets/codesize.xml/TooManyMethods">
<properties>
<property name="maxmethods" value="25" />
<property name="ignorepattern" value="(^(set|get|is|has|scope|offset))i" />
</properties>
</rule>
<rule ref="rulesets/codesize.xml/TooManyPublicMethods">
<properties>
<property name="maxmethods" value="25" />
<property name="ignorepattern" value="(^(set|get|is|has|scope|offset))i" />
</properties>
</rule>
Expand Down

0 comments on commit d4ce9d0

Please sign in to comment.