Created
February 18, 2017 19:27
-
-
Save shubham9411/81693c660e94255315622b6d74f71f14 to your computer and use it in GitHub Desktop.
Basic ruleset file for WordPress Sniffing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<ruleset name="WordPress Theme Coding Standards"> | |
<!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml --> | |
<!-- See https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/blob/develop/WordPress-Core/ruleset.xml --> | |
<!-- Set a description for this ruleset. --> | |
<description>A custom set of code standard rules to check for WordPress themes.</description> | |
<!-- Include the WordPress ruleset, with exclusions. --> | |
<rule ref="WordPress"> | |
<exclude name="Generic.WhiteSpace.ScopeIndent.IncorrectExact" /> | |
<exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect" /> | |
<exclude name="PEAR.Functions.FunctionCallSignature.Indent" /> | |
</rule> | |
<!-- Include sniffs for PHP cross-version compatibility. --> | |
<config name="testVersion" value="5.2-99.0"/> | |
<rule ref="PHPCompatibility"/> | |
</ruleset> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment