<?xml version="1.0"?>
<ruleset name="PHP-PasswordLib PHPMD Rule Set"
         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>
        A custom PHPMD ruleset for detecting messy code in the
        PHP-PasswordLib project.
	</description>

	<rule ref="rulesets/codesize.xml/CyclomaticComplexity">
		<priority>1</priority>
		<properties>
			<property name="reportLevel" value="8" />
		</properties>
	</rule>
	<rule ref="rulesets/codesize.xml/NPathComplexity" />
	<rule ref="rulesets/codesize.xml/ExcessiveClassLength">
		<properties>
			<property name="minimum" value="700" />
		</properties>
	</rule>
	<rule ref="rulesets/codesize.xml/ExcessiveParameterList">
		<properties>
			<property name="minimum" value="6" />
		</properties>
	</rule>
	<rule ref="rulesets/codesize.xml/ExcessivePublicCount">
		<properties>
			<property name="minimum" value="20" />
		</properties>
	</rule>
	<rule ref="rulesets/codesize.xml/TooManyFields" />
	<rule ref="rulesets/codesize.xml/TooManyMethods">
		<properties>
			<property name="maxmethods" value="20" />
		</properties>
	</rule>
	<rule ref="rulesets/codesize.xml/ExcessiveClassComplexity" />
	<rule ref="rulesets/design.xml" />
	<rule ref="rulesets/naming.xml" />
	<rule ref="rulesets/unusedcode.xml">
		<exclude name="UnusedFormalParameter" />
	</rule>
</ruleset>