Update codesniffer.ruleset.xml

This commit is contained in:
Oral UNAL 2017-08-14 17:30:16 +03:00 committed by GitHub
parent d04cb6d036
commit 8bba6adcfe
1 changed files with 15 additions and 6 deletions

View File

@ -6,14 +6,23 @@
<!-- Set a description for this ruleset. --> <!-- Set a description for this ruleset. -->
<description>A custom set of code standard rules to check for WordPress themes.</description> <description>A custom set of code standard rules to check for WordPress themes.</description>
<!-- Include the WordPress ruleset, with exclusions. --> <!-- Include the WordPress ruleset, with space for exclusions if necessary. -->
<rule ref="WordPress"> <rule ref="WordPress-Core">
<exclude name="Generic.WhiteSpace.ScopeIndent.IncorrectExact" />
<exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect" /> <exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect" />
<exclude name="Generic.WhiteSpace.ScopeIndent.IncorrectExact" />
<exclude name="PEAR.Functions.FunctionCallSignature.Indent" /> <exclude name="PEAR.Functions.FunctionCallSignature.Indent" />
<exclude name="Squiz.Commenting.FileComment.SpacingAfterComment" />
<exclude name="Squiz.Commenting.FunctionComment.MissingParamTag" />
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar" />
<exclude name="Squiz.Commenting.InlineComment.NotCapital" />
</rule>
<rule ref="WordPress-Docs">
</rule> </rule>
<!-- Include sniffs for PHP cross-version compatibility. --> <rule ref="Squiz.Commenting.FunctionComment.ScalarTypeHintMissing">
<config name="testVersion" value="5.2-99.0"/> <severity>0</severity>
<rule ref="PHPCompatibility"/> </rule>
</ruleset> </ruleset>