akester/storehouse

Fork Project
[619be28cf] project: Updating phpmd config
<?xml version="1.0"?>
<ruleset name="Storehouse PHPMD Ruleset" 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>Checks Storehouse code using a slight variant of the default PHPMD rules.</description>

	<!-- Import all the rulesets -->
	<rule ref="rulesets/controversial.xml"></rule>
	<rule ref="rulesets/unusedcode.xml"></rule>
	<rule ref="rulesets/cleancode.xml">
		<exclude name="StaticAccess" />
		<exclude name="ElseExpression" />
	</rule>
	<rule ref="rulesets/codesize.xml">
		<exclude name="TooManyFields" />
		<exclude name="TooManyMethods" />
		<exclude name="TooManyPublicMethods" />
	</rule>
	<rule ref="rulesets/design.xml">
		<exclude name="CouplingBetweenObjects" />
	</rule>
	<rule ref="rulesets/naming.xml">
		<exclude name="ShortVariable" />
	</rule>
	<rule ref="rulesets/naming.xml/ShortVariable">
		<properties>
			<property name="minimum" value="2" />
		</properties>
	</rule>
</ruleset>