This repository has been archived on 2020-05-08. You can view files and clone it, but cannot push or open issues or pull requests.
understrap/phpcs.xml

44 lines
1.5 KiB
XML
Raw Normal View History

2017-01-26 18:15:24 +00:00
<?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>
2019-06-26 16:33:58 +00:00
<!-- Only check the PHP files -->
<arg name="extensions" value="php"/>
<!-- Scan these files -->
<file>.</file>
<!-- Ignore the vendor directory -->
<exclude-pattern>./vendor</exclude-pattern>
<!-- Show colors in console -->
<arg value="-colors"/>
<!-- Show sniff codes in all reports -->
<arg value="s"/>
2017-08-14 14:30:16 +00:00
<!-- Include the WordPress ruleset, with space for exclusions if necessary. -->
<rule ref="WordPress-Core">
2017-01-26 18:15:24 +00:00
<exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect" />
2017-08-14 14:30:16 +00:00
<exclude name="Generic.WhiteSpace.ScopeIndent.IncorrectExact" />
2017-01-26 18:15:24 +00:00
<exclude name="PEAR.Functions.FunctionCallSignature.Indent" />
2017-08-14 14:30:16 +00:00
<exclude name="Squiz.Commenting.FileComment.SpacingAfterComment" />
<exclude name="Squiz.Commenting.FunctionComment.MissingParamTag" />
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar" />
<exclude name="Squiz.Commenting.InlineComment.NotCapital" />
2017-01-26 18:15:24 +00:00
</rule>
2017-08-14 14:30:16 +00:00
<rule ref="WordPress-Docs">
2017-01-26 18:15:24 +00:00
2017-08-14 14:30:16 +00:00
</rule>
<rule ref="Squiz.Commenting.FunctionComment.ScalarTypeHintMissing">
<severity>0</severity>
</rule>
2017-01-26 18:15:24 +00:00
</ruleset>