Skip to content

Instantly share code, notes, and snippets.

@PHLAK
Created September 19, 2017 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PHLAK/a425c5431c8a7fe55fab6599b369873f to your computer and use it in GitHub Desktop.
Save PHLAK/a425c5431c8a7fe55fab6599b369873f to your computer and use it in GitHub Desktop.
PHPMD ruleset
<?xml version="1.0"?>
<ruleset
name="My first PHPMD 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>
<rule ref="rulesets/cleancode.xml">
<exclude name="staticaccess" />
</rule>
<rule ref="rulesets/codesize.xml" />
<rule ref="rulesets/controversial.xml" />
<rule ref="rulesets/design.xml" />
<rule ref="rulesets/naming.xml" />
<rule ref="rulesets/unusedcode.xml" />
</description>
</ruleset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment