Skip to content

Commit

Permalink
Update TooManyMethods rule
Browse files Browse the repository at this point in the history
  • Loading branch information
kitloong committed Aug 3, 2024
1 parent b0602f5 commit 431f9bd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .phpmd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<exclude name="ExcessiveParameterList"/>
<exclude name="NPathComplexity"/>
<exclude name="TooManyFields"/>
<exclude name="TooManyMethods"/>
<exclude name="TooManyPublicMethods"/>
</rule>
<rule ref="rulesets/codesize.xml/CyclomaticComplexity">
Expand Down Expand Up @@ -47,6 +48,11 @@
<property name="maxfields" value="25"/>
</properties>
</rule>
<rule ref="rulesets/codesize.xml/TooManyMethods">
<properties>
<property name="ignorepattern" value="(^(set|get|is|has|with|test))i"/>
</properties>
</rule>
<rule ref="rulesets/codesize.xml/TooManyPublicMethods">
<properties>
<property name="ignorepattern" value="(^(set|get|is|has|with|test))i"/>
Expand Down

0 comments on commit 431f9bd

Please sign in to comment.