Skip to content

Instantly share code, notes, and snippets.

@dinhhoanglong91
Last active May 4, 2016 09:17
Show Gist options
  • Save dinhhoanglong91/d20b2cd66cc66e8ed73085cf8db5aed7 to your computer and use it in GitHub Desktop.
Save dinhhoanglong91/d20b2cd66cc66e8ed73085cf8db5aed7 to your computer and use it in GitHub Desktop.
PHPMD Rule set
<?xml version="1.0"?>
<ruleset name="PHPMD Customized rule set"
xmlns="http://pmd.sf.net/ruleset/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0
http://pmd.sf.net/ruleset_xml_schema.xsd"
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
<description>
PHPMD Customized rule set
</description>
<rule ref="rulesets/controversial.xml"/>
<rule ref="rulesets/design.xml">
<exclude name="NumberOfChildren"/>
<exclude name="CouplingBetweenObjects"/>
</rule>
<rule ref="rulesets/naming.xml">
<exclude name="ShortVariable"/>
<exclude name="LongVariable"/>
</rule>
</ruleset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment