forked from mirror/_s
34 lines
1.3 KiB
XML
34 lines
1.3 KiB
XML
<?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>
|
|
|
|
<!-- Pass some flags to PHPCS:
|
|
p flag: Show progress of the run.
|
|
s flag: Show sniff codes in all reports.
|
|
v flag: Print verbose output.
|
|
n flag: Do not print warnings.
|
|
-->
|
|
<arg value="psvn"/>
|
|
|
|
<!-- Only check the PHP files. JS files are checked separately with JSCS and JSHint. -->
|
|
<arg name="extensions" value="php"/>
|
|
|
|
<!-- Check all files in this directory and the directories below it. -->
|
|
<file>.</file>
|
|
|
|
<!-- 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>
|