25 lines
830 B
XML
25 lines
830 B
XML
<?xml version="1.0"?>
|
|
<ruleset name="WordPress 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 -->
|
|
|
|
<description>WooCommerce dev PHP_CodeSniffer ruleset.</description>
|
|
|
|
<rule ref="WordPress">
|
|
<exclude name="WordPress.VIP.RestrictedFunctions" />
|
|
<exclude name="WordPress.VIP.OrderByRand" />
|
|
</rule>
|
|
|
|
<rule ref="WordPress.VIP.ValidatedSanitizedInput">
|
|
<properties>
|
|
<property name="customSanitizingFunctions" type="array" value="wc_clean" />
|
|
</properties>
|
|
</rule>
|
|
|
|
<rule ref="WordPress.XSS.EscapeOutput">
|
|
<properties>
|
|
<property name="customEscapingFunctions" type="array" value="wc_help_tip" />
|
|
</properties>
|
|
</rule>
|
|
</ruleset>
|