XML 30
Phpmd.xml Guest on 25th June 2020 03:30:20 AM
  1. <ruleset xmlns="http://pmd.sf.net/ruleset/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="WordPress Yoast" xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
  2. <description>Yoast Standards</description>
  3. <rule ref="rulesets/cleancode.xml">
  4. <!--  used all over  -->
  5. <exclude name="BooleanArgumentFlag"/>
  6. <!--  in lack of real namespacing  -->
  7. <exclude name="StaticAccess"/>
  8. </rule>
  9. <rule ref="rulesets/codesize.xml"/>
  10. <rule ref="rulesets/design.xml">
  11. <!--  normal in WP for redirects, etc  -->
  12. <exclude name="ExitExpression"/>
  13. </rule>
  14. <rule ref="rulesets/naming.xml/ShortVariable">
  15. <properties>
  16. <!--  common in WP for object IDs  -->
  17. <property name="exceptions" value="id"/>
  18. </properties>
  19. </rule>
  20. <rule ref="rulesets/naming.xml/LongVariable"/>
  21. <rule ref="rulesets/naming.xml/ShortMethodName"/>
  22. <rule ref="rulesets/naming.xml/ConstructorWithNameAsEnclosingClass"/>
  23. <rule ref="rulesets/naming.xml/ConstantNamingConventions"/>
  24. <rule ref="rulesets/naming.xml/BooleanGetMethodName"/>
  25. </ruleset>

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.