phpmd.xml
<?xml version="1.0"?>
<ruleset>
<description>Custom ruleset for code standards</description>
<rule ref="rulesets/cleancode.xml" />
<rule ref="rulesets/codesize.xml" />
<rule ref="rulesets/controversial.xml" />
<rule ref="rulesets/design.xml" />
<rule ref="rulesets/naming.xml">
<exclude name="LongVariable" />
</rule>
<rule ref="rulesets/unusedcode.xml" />
</ruleset>