Merge pull request #2 from oralunal/patch-2
Update codesniffer.ruleset.xml
This commit is contained in:
commit
3ddafaad14
|
@ -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>
|
||||||
|
|
Reference in New Issue