codesniffer.ruleset.xml 1.0 KB

123456789101112131415161718192021222324
  1. <?xml version="1.0"?>
  2. <ruleset name="WordPress Theme Coding Standards">
  3. <!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml -->
  4. <!-- See https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/blob/develop/WordPress-Core/ruleset.xml -->
  5. <!-- Set a description for this ruleset. -->
  6. <description>A custom set of code standard rules to check for WordPress themes.</description>
  7. <!-- Include the WordPress ruleset, with space for exclusions if necessary. -->
  8. <rule ref="WordPress-Core">
  9. <exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect" />
  10. <exclude name="Generic.WhiteSpace.ScopeIndent.IncorrectExact" />
  11. <exclude name="PEAR.Functions.FunctionCallSignature.Indent" />
  12. <exclude name="Squiz.Commenting.FileComment.SpacingAfterComment" />
  13. <exclude name="Squiz.Commenting.FunctionComment.MissingParamTag" />
  14. <exclude name="Squiz.Commenting.InlineComment.InvalidEndChar" />
  15. <exclude name="Squiz.Commenting.InlineComment.NotCapital" />
  16. </rule>
  17. <rule ref="WordPress-Docs">
  18. </rule>
  19. </ruleset>