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. -->
|
||||
<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" />
|
||||
<!-- Include the WordPress ruleset, with space for exclusions if necessary. -->
|
||||
<rule ref="WordPress-Core">
|
||||
<exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect" />
|
||||
<exclude name="Generic.WhiteSpace.ScopeIndent.IncorrectExact" />
|
||||
|
||||
<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>
|
||||
|
||||
<!-- Include sniffs for PHP cross-version compatibility. -->
|
||||
<config name="testVersion" value="5.2-99.0"/>
|
||||
<rule ref="PHPCompatibility"/>
|
||||
<rule ref="Squiz.Commenting.FunctionComment.ScalarTypeHintMissing">
|
||||
<severity>0</severity>
|
||||
</rule>
|
||||
</ruleset>
|
||||
|
|
Reference in New Issue