Drupal investigation

ruleset.xml 890B

1234567891011121314151617181920212223242526
  1. <?xml version="1.0"?>
  2. <ruleset name="DrupalPractice">
  3. <description>Drupal best practice checks</description>
  4. <!-- All Drupal code files must be UTF-8 encoded and we treat them as such. -->
  5. <arg name="encoding" value="utf-8"/>
  6. <arg name="extensions" value="php,module,inc,install,test,profile,theme,yml"/>
  7. <rule ref="Internal.NoCodeFound">
  8. <!-- Empty files are fine, might be used for testing. -->
  9. <exclude-pattern>*</exclude-pattern>
  10. </rule>
  11. <rule ref="DrupalPractice.CodeAnalysis.VariableAnalysis.UndefinedVariable">
  12. <!-- Do not run this sniff on template files. -->
  13. <exclude-pattern>*.tpl.php</exclude-pattern>
  14. </rule>
  15. <!-- Ignore various version control directories. -->
  16. <exclude-pattern>*/\.git/*</exclude-pattern>
  17. <exclude-pattern>*/\.svn/*</exclude-pattern>
  18. <exclude-pattern>*/\.hg/*</exclude-pattern>
  19. <exclude-pattern>*/\.bzr/*</exclude-pattern>
  20. </ruleset>