Skip to content

Commit

Permalink
Fix phpmd config file
Browse files Browse the repository at this point in the history
  • Loading branch information
mosbth committed May 7, 2024
1 parent 31bb3eb commit 18c626b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions example/php-linter-and-mess-detection/phpmd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,17 @@
<rule ref="rulesets/codesize.xml" />
<rule ref="rulesets/controversial.xml"/>

<rule ref="rulesets/naming.xml" />
<rule ref="rulesets/naming.xml">
<exclude name="ShortVariable" />
<exclude name="ShortMethodName" />
</rule>

<rule ref="rulesets/naming.xml/ShortVariable">
<properties>
<property name="exceptions" value="i,j,db,id,di" />
<property name="exceptions" value="db,id,di" />
</properties>
</rule>

<rule ref="rulesets/naming.xml/ShortMethodName">
<properties>
<property name="exceptions" value="t,e" />
Expand Down

0 comments on commit 18c626b

Please sign in to comment.