Skip to content

Commit

Permalink
Update phpmd.xml to ignore public methods that are for special interf…
Browse files Browse the repository at this point in the history
…aces.
  • Loading branch information
felixarntz committed Nov 3, 2023
1 parent 541a16f commit 99bf7a5
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 @@ -19,6 +19,12 @@
</properties>
</rule>

<rule ref="rulesets/codesize.xml/TooManyPublicMethods">
<properties>
<property name="ignorepattern" value="(^(getIterator|offsetExists|offsetGet|offsetSet|offsetUnset))i" />
</properties>
</rule>

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

0 comments on commit 99bf7a5

Please sign in to comment.