Drupal investigation

phpcs.xml.dist 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?xml version="1.0"?>
  2. <ruleset name="drupal_coder">
  3. <description>The coding standard for coder_sniffer.</description>
  4. <file>coder_sniffer</file>
  5. <exclude-pattern>*/Test/*</exclude-pattern>
  6. <rule ref="PHPCS" />
  7. <!-- The following sniffs are disabled because we don't want them -->
  8. <rule ref="PEAR.Commenting.FileComment">
  9. <exclude name="PEAR.Commenting.FileComment.MissingAuthorTag"/>
  10. <exclude name="PEAR.Commenting.FileComment.MissingLicenseTag"/>
  11. <exclude name="PEAR.Commenting.FileComment.MissingVersion"/>
  12. </rule>
  13. <rule ref="PEAR.Commenting.ClassComment">
  14. <exclude name="PEAR.Commenting.ClassComment.CategoryTagOrder"/>
  15. <exclude name="PEAR.Commenting.ClassComment.MissingAuthorTag"/>
  16. <exclude name="PEAR.Commenting.ClassComment.MissingLicenseTag"/>
  17. </rule>
  18. <rule ref="PEAR.NamingConventions.ValidFunctionName">
  19. <exclude name="PEAR.NamingConventions.ValidFunctionName.PrivateNoUnderscore"/>
  20. </rule>
  21. <rule ref="Generic.Files.LineLength">
  22. <exclude name="Generic.Files.LineLength.TooLong"/>
  23. </rule>
  24. <rule ref="Generic.Commenting.Todo">
  25. <exclude name="Generic.Commenting.Todo.TaskFound"/>
  26. <exclude name="Generic.Commenting.Todo.CommentFound"/>
  27. </rule>
  28. <!-- The following sniffs are disabled because Coder is not compliant yet, see
  29. https://www.drupal.org/node/2734539 -->
  30. <rule ref="PEAR.Commenting.FunctionComment.MissingParamComment">
  31. <exclude-pattern>*/DrupalPractice/Sniffs/CodeAnalysis/VariableAnalysisSniff.php</exclude-pattern>
  32. </rule>
  33. </ruleset>