php/phpmd_ggs.xml
<ruleset name="ggs phpmd settings" 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>ggs phpmd settings</description>
<rule ref="rulesets/codesize.xml/CyclomaticComplexity">
<properties>
<property name="reportLevel" value="10"/>
<property name="showClassesComplexity" value="true"/>
<property name="showMethodsComplexity" value="true"/>
</properties>
</rule>
<rule ref="rulesets/codesize.xml/NPathComplexity">
<properties>
<property name="minimum" value="100"/>
</properties>
</rule>
<!--
<rule ref="/var/www/goodgamestudios.com/core/build/analytics/settings/rulesets/codesize.xml/GgsExcessiveMethodLength">
<properties>
<property name="minimum" value="25"/>
<property name="ignore-whitespace" value="true"/>
</properties>
</rule>
<rule ref="/var/www/goodgamestudios.com/core/build/analytics/settings/rulesets/codesize.xml/GgsExcessiveClassLength">
<properties>
<property name="minimum" value="270"/>
<property name="ignore-whitespace" value="true"/>
</properties>
</rule>
-->
<rule ref="rulesets/codesize.xml/ExcessiveMethodLength">
<properties>
<property name="minimum" value="100"/>
</properties>
</rule>
<rule ref="rulesets/codesize.xml/ExcessiveClassLength">
<properties>
<property name="minimum" value="400"/>
</properties>
</rule>
<rule ref="rulesets/codesize.xml/ExcessiveParameterList">
<properties>
<property name="minimum" value="4"/>
</properties>
</rule>
<rule ref="rulesets/codesize.xml/ExcessivePublicCount">
<properties>
<property name="minimum" value="40"/>
</properties>
</rule>
<rule ref="rulesets/codesize.xml/TooManyFields">
<properties>
<property name="maxfields" value="15"/>
</properties>
</rule>
<rule ref="rulesets/codesize.xml/TooManyMethods">
<properties>
<property name="maxmethods" value="10"/>
</properties>
</rule>
<rule ref="rulesets/codesize.xml/ExcessiveClassComplexity">
<properties>
<property name="maximum" value="50"/>
</properties>
</rule>
<rule ref="rulesets/design.xml/ExitExpression"/>
<rule ref="rulesets/design.xml/EvalExpression"/>
<rule ref="rulesets/design.xml/GotoStatement"/>
<rule ref="rulesets/design.xml/NumberOfChildren">
<properties>
<property name="minimum" value="15"/>
</properties>
</rule>
<rule ref="rulesets/design.xml/DepthOfInheritance">
<properties>
<property name="minimum" value="5"/>
</properties>
</rule>
<rule ref="rulesets/design.xml/CouplingBetweenObjects">
<properties>
<property name="minimum" value="10"/>
</properties>
</rule>
<rule ref="rulesets/controversial.xml"/>
<rule ref="rulesets/naming.xml/ShortVariable">
<properties>
<property name="minimum" value="3"/>
<property name="exceptions" value="id,em,sm,os,di,db" />
<!-- in phpmd 1.5.0 no maximum definied -->
<!-- <property name="maximum" value="30"/>-->
</properties>
</rule>
<rule ref="rulesets/naming.xml/ShortMethodName">
<properties>
<property name="minimum" value="4"/>
</properties>
</rule>
<rule ref="rulesets/naming.xml/ConstantNamingConventions"/>
<rule ref="rulesets/naming.xml/BooleanGetMethodName"/>
<rule ref="rulesets/unusedcode.xml"/>
<!--
<rule ref="/var/www/goodgamestudios.com/core/build/analytics/settings/rulesets/naming.xml/GgsConstructorWithNameAsEnclosingClass"/>
<rule ref="/var/www/goodgamestudios.com/core/build/analytics/settings/rulesets/controversial.xml/GgsCamelCaseVariableName"/>
-->
</ruleset>