Skip to content

Instantly share code, notes, and snippets.

@avandrevitor
Created March 7, 2018 19:27
Show Gist options
  • Select an option

  • Save avandrevitor/0bfd966c38de1288fa8ce7bc2b27d6c9 to your computer and use it in GitHub Desktop.

Select an option

Save avandrevitor/0bfd966c38de1288fa8ce7bc2b27d6c9 to your computer and use it in GitHub Desktop.
Example phpmd.xml
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="phpmd.xml"
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>
Created with the PHP Coding Standard Generator. http://edorian.github.com/php-coding-standard-generator/
</description>
<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"/>
</ruleset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment