-
-
Save therealssj/684019d2c600ed78434dbb2fb67c3407 to your computer and use it in GitHub Desktop.
PHP Mess Detector Ruleset for Drupal.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<ruleset | |
name="PMD Ruleset for Drupal" | |
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd" | |
> | |
<rule ref="rulesets/unusedcode.xml" /> | |
<rule ref="rulesets/codesize.xml"> | |
<exclude name="ExcessiveMethodLength" /> | |
</rule> | |
<rule ref="rulesets/codesize.xml/ExcessiveMethodLength"> | |
<properties> | |
<property name="minimum" value="150" /> | |
</properties> | |
</rule> | |
<rule ref="rulesets/cleancode.xml" /> | |
<rule ref="rulesets/design.xml"> | |
<exclude name="CouplingBetweenObjects" /> | |
</rule> | |
<rule ref="rulesets/design.xml/CouplingBetweenObjects" /> | |
<rule ref="rulesets/naming.xml"> | |
<exclude name="ShortVariable" /> | |
<exclude name="LongVariable" /> | |
</rule> | |
<rule ref="rulesets/naming.xml/ShortVariable"> | |
<properties> | |
<property name="minimum" value="2" /> | |
<property name="exceptions" value="id" /> | |
</properties> | |
</rule> | |
<rule ref="rulesets/naming.xml/LongVariable"> | |
<properties> | |
<property name="maximum" value="30" /> | |
</properties> | |
</rule> | |
</ruleset> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment