phpmd.xml.dist 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <ruleset name="PHPOffice Common 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. <!-- AbstractContainer needs more coupling (default: 13) -->
  21. <properties>
  22. <property name="minimum" value="20" />
  23. </properties>
  24. </rule>
  25. <rule ref="rulesets/design.xml/NumberOfChildren">
  26. <!-- AbstractStyle needs more children (default: 15) -->
  27. <properties>
  28. <property name="minimum" value="30" />
  29. </properties>
  30. </rule>
  31. <rule ref="rulesets/unusedcode.xml" />
  32. <rule ref="rulesets/controversial.xml" />
  33. </ruleset>