Nav apraksta

phpmd.xml.dist 1.1KB

12345678910111213141516171819202122232425262728
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <ruleset
  3. name="Instantiator rules"
  4. xmlns="http://pmd.sf.net/ruleset/1.0.0"
  5. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  6. xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
  7. xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"
  8. >
  9. <rule ref="rulesets/cleancode.xml">
  10. <!-- static access is used for caching purposes -->
  11. <exclude name="StaticAccess"/>
  12. </rule>
  13. <rule ref="rulesets/codesize.xml"/>
  14. <rule ref="rulesets/controversial.xml"/>
  15. <rule ref="rulesets/design.xml"/>
  16. <rule ref="rulesets/naming.xml"/>
  17. <rule ref="rulesets/unusedcode.xml"/>
  18. <rule
  19. name="NPathComplexity"
  20. message="The {0} {1}() has an NPath complexity of {2}. The configured NPath complexity threshold is {3}."
  21. class="PHP_PMD_Rule_Design_NpathComplexity"
  22. >
  23. <properties>
  24. <property name="minimum" description="The npath reporting threshold" value="10"/>
  25. </properties>
  26. </rule>
  27. </ruleset>