phpmd.xml.dist 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <ruleset name="PHPPresentation PHP Mess Detector Rule Set"
  3. xmlns="http://pmd.sf.net/ruleset/1.0.0"
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5. xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
  6. xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
  7. <rule ref="rulesets/naming.xml">
  8. <exclude name="LongVariable" />
  9. </rule>
  10. <rule ref="rulesets/naming.xml/LongVariable">
  11. <properties>
  12. <property name="maximum" value="32" />
  13. </properties>
  14. </rule>
  15. <rule ref="rulesets/design.xml/ExitExpression" />
  16. <rule ref="rulesets/design.xml/EvalExpression" />
  17. <rule ref="rulesets/design.xml/GotoStatement" />
  18. <rule ref="rulesets/design.xml/DepthOfInheritance" />
  19. <rule ref="rulesets/design.xml/CouplingBetweenObjects">
  20. <!-- PptSlides needs more coupling (default: 13) -->
  21. <!-- Writer/Office2007/AbstractSlide needs more coupling (default: 13) -->
  22. <properties>
  23. <property name="minimum" value="35" />
  24. </properties>
  25. </rule>
  26. <rule ref="rulesets/design.xml/NumberOfChildren">
  27. <!-- AbstractStyle needs more children (default: 15) -->
  28. <properties>
  29. <property name="minimum" value="30" />
  30. </properties>
  31. </rule>
  32. <rule ref="rulesets/unusedcode.xml" />
  33. <rule ref="rulesets/controversial.xml" />
  34. </ruleset>