phpmd.xml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0"?>
  2. <ruleset name="Mess detection rules for Carbon"
  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
  6. http://pmd.sf.net/ruleset_xml_schema.xsd"
  7. xsi:noNamespaceSchemaLocation="
  8. http://pmd.sf.net/ruleset_xml_schema.xsd">
  9. <description>
  10. Mess detection rules for Carbon
  11. </description>
  12. <rule ref="rulesets/codesize.xml">
  13. <exclude name="CyclomaticComplexity" />
  14. <exclude name="NPathComplexity" />
  15. <exclude name="ExcessiveMethodLength" />
  16. <exclude name="ExcessiveClassLength" />
  17. <exclude name="ExcessivePublicCount" />
  18. <exclude name="TooManyMethods" />
  19. <exclude name="TooManyPublicMethods" />
  20. <exclude name="ExcessiveClassComplexity" />
  21. </rule>
  22. <rule ref="rulesets/cleancode.xml">
  23. <exclude name="BooleanArgumentFlag" />
  24. <exclude name="StaticAccess" />
  25. <exclude name="IfStatementAssignment" />
  26. <exclude name="UndefinedVariable" />
  27. </rule>
  28. <rule ref="rulesets/controversial.xml" />
  29. <rule ref="rulesets/design.xml">
  30. <exclude name="EvalExpression" />
  31. <exclude name="CouplingBetweenObjects" />
  32. <exclude name="CountInLoopExpression" />
  33. </rule>
  34. <rule ref="rulesets/design.xml/CouplingBetweenObjects">
  35. <properties>
  36. <property name="maximum" value="20" />
  37. </properties>
  38. </rule>
  39. <rule ref="rulesets/naming.xml/ShortVariable">
  40. <properties>
  41. <property name="exceptions" value="ci,id,to,tz" />
  42. </properties>
  43. </rule>
  44. <rule ref="rulesets/unusedcode.xml" />
  45. </ruleset>