mirror of
https://github.com/furyfire/trueskill.git
synced 2025-01-15 17:37:39 +00:00
49 lines
1.7 KiB
XML
49 lines
1.7 KiB
XML
<?xml version="1.0"?>
|
|
<ruleset name="TrueSkill custom PHPMD rules"
|
|
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>
|
|
TrueSkill custom PHPMD rules
|
|
</description>
|
|
|
|
<!-- Import the entire unused code rule set -->
|
|
<rule ref="rulesets/cleancode.xml">
|
|
<exclude name="StaticAccess" />
|
|
<exclude name="ElseExpression" />
|
|
</rule>
|
|
<rule ref="rulesets/codesize.xml" >
|
|
<exclude name="TooManyMethods" />
|
|
<exclude name="TooManyPublicMethods" />
|
|
</rule>
|
|
<rule ref="rulesets/codesize.xml/TooManyMethods">
|
|
<priority>1</priority>
|
|
<properties>
|
|
<property name="ignorepattern" value="#^(set|get|test)|test$#i" />
|
|
</properties>
|
|
</rule>
|
|
<rule ref="rulesets/codesize.xml/TooManyPublicMethods">
|
|
<priority>1</priority>
|
|
<properties>
|
|
<property name="ignorepattern" value="#^(set|get|test)|test$#i" />
|
|
</properties>
|
|
</rule>
|
|
|
|
|
|
<!--rule ref="rulesets/controversial.xml" /-->
|
|
<rule ref="rulesets/design.xml" />
|
|
<rule ref="rulesets/naming.xml" >
|
|
<exclude name="LongClassName" />
|
|
<exclude name="ShortClassName" />
|
|
<exclude name="ShortVariable" />
|
|
<exclude name="LongVariable" />
|
|
<exclude name="ShortMethodName" />
|
|
</rule>
|
|
<rule ref="rulesets/unusedcode.xml" />
|
|
|
|
<!-- Import entire naming rule set and exclude rules -->
|
|
|
|
</ruleset> |