ruleset.xml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?xml version="1.0"?>
  2. <ruleset name="Chamilo 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
  6. http://pmd.sf.net/ruleset_xml_schema.xsd"
  7. xsi:noNamespaceSchemaLocation="
  8. http://pmd.sf.net/ruleset_xml_schema.xsd">
  9. <description>
  10. Chamilo rule set.
  11. </description>
  12. <!-- Import the entire unused code rule set -->
  13. <rule ref="rulesets/cleancode.xml">
  14. <exclude name="BooleanArgumentFlag" />
  15. <exclude name="StaticAccess" />
  16. </rule>
  17. <!--
  18. Import the entire cyclomatic complexity rule and
  19. customize the rule configuration.
  20. -->
  21. <rule ref="rulesets/codesize.xml">
  22. <exclude name="TooManyPublicMethods" />
  23. <exclude name="TooManyFields" />
  24. <exclude name="TooManyMethods" />
  25. <exclude name="CyclomaticComplexity" />
  26. <exclude name="ExcessiveMethodLength" />
  27. <exclude name="ExcessiveClassLength" />
  28. <exclude name="ExcessivePublicCount" />
  29. <exclude name="ExcessiveClassComplexity" />
  30. </rule>
  31. <rule ref="rulesets/controversial.xml" >
  32. <exclude name="Superglobals" />
  33. </rule>
  34. <rule ref="rulesets/design.xml" >
  35. <exclude name="WeightedMethodCount" />
  36. <exclude name="ExitExpression" />
  37. </rule>
  38. <!-- Import entire naming rule set and exclude rules -->
  39. <rule ref="rulesets/naming.xml">
  40. <exclude name="ShortVariable" />
  41. <exclude name="LongVariable" />
  42. <exclude name="ShortMethodName" />
  43. </rule>
  44. <rule ref="rulesets/unusedcode.xml" />
  45. </ruleset>