Created
December 23, 2010 18:34
-
-
Save johnkary/753364 to your computer and use it in GitHub Desktop.
PHPMD config from http://edorian.posterous.com/php-mess-detector-rulesets
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="My-PHPMD" | |
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> | |
MyRuleset... | |
</description> | |
<!-- Unusable atm since UnusedLocalVariable is broken (#28) | |
<rule ref="rulesets/unusedcode.xml" /> | |
--> | |
<rule ref="rulesets/unusedcode.xml/UnusedPrivateField" /> | |
<rule ref="rulesets/unusedcode.xml/UnusedPrivateMethod" /> | |
<rule ref="rulesets/unusedcode.xml/UnusedFormalParameter" /> | |
<rule ref="rulesets/naming.xml/LongVariable"> | |
<priority>5</priority> | |
<properties> | |
<property name="maximum" value="30" /> | |
</properties> | |
</rule> | |
<rule ref="rulesets/naming.xml/ShortMethodName" /> | |
<rule ref="rulesets/naming.xml/ConstructorWithNameAsEnclosingClass" /> | |
<rule ref="rulesets/naming.xml/ConstantNamingConventions" /> | |
<rule ref="rulesets/naming.xml/BooleanGetMethodName"> | |
<priority>5</priority> | |
</rule> | |
<rule ref="rulesets/codesize.xml/CyclomaticComplexity" /> | |
<rule ref="rulesets/codesize.xml/NPathComplexity" /> | |
<rule ref="rulesets/codesize.xml/ExcessiveMethodLength" /> | |
<rule ref="rulesets/codesize.xml/ExcessiveClassLength"> | |
<properties> | |
<property name="minimum" value="1500" /> | |
</properties> | |
</rule> | |
<rule ref="rulesets/codesize.xml/ExcessiveParameterList"> | |
<priority>2</priority> | |
</rule> | |
<rule ref="rulesets/codesize.xml/ExcessivePublicCount"> | |
<priority>2</priority> | |
</rule> | |
<rule ref="rulesets/codesize.xml/TooManyFields"> | |
<priority>4</priority> | |
<properties> | |
<property name="maxfields" value="20" /> | |
</properties> | |
</rule> | |
<rule ref="rulesets/codesize.xml/TooManyMethods"> | |
<priority>3</priority> | |
<properties> | |
<property name="maxmethods" value="30" /> | |
</properties> | |
</rule> | |
<rule ref="rulesets/codesize.xml/ExcessiveClassComplexity" /> | |
</ruleset> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment