Skip to content

Instantly share code, notes, and snippets.

@mboynes
Created March 20, 2015 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mboynes/eeeac0d95a36a0ce51b2 to your computer and use it in GitHub Desktop.
Save mboynes/eeeac0d95a36a0ce51b2 to your computer and use it in GitHub Desktop.
WordPress Codesniffer ruleset starting point
<?xml version="1.0"?>
<ruleset name="WordPress Theme Coding Standards Configuration">
<!-- Set a description for this ruleset. -->
<description>Code standard rules to check against a WordPress Theme.</description>
<exclude-pattern>tests/*</exclude-pattern>
<exclude-pattern>inc/cli.php</exclude-pattern>
<!-- Include the WordPress VIP ruleset -->
<rule ref="WordPress-VIP">
</rule>
<rule ref="Generic.WhiteSpace.ScopeIndent.IncorrectExact">
<type>warning</type>
</rule>
</ruleset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment