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

Commit

Permalink
Merge pull request #35 from elbgoods/bugfix/phpmd-fucking-too-many-me…
Browse files Browse the repository at this point in the history
…thods

unify TooManyMethods rules to same pattern and count
  • Loading branch information
eisfeuer authored Sep 14, 2020
2 parents 3cbe200 + d4ce9d0 commit fafceba
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 fafceba

Please sign in to comment.