PHPCS custom settings to support minimum WP version and text domain
Also makes sure that PHPCompatibility is looking for PHP 5.2+
This commit is contained in:
parent
163c73ba97
commit
914ebef337
|
@ -11,7 +11,14 @@
|
||||||
<exclude-pattern>includes/gateways/simplify-commerce/includes/</exclude-pattern>
|
<exclude-pattern>includes/gateways/simplify-commerce/includes/</exclude-pattern>
|
||||||
<exclude-pattern>includes/libraries/</exclude-pattern>
|
<exclude-pattern>includes/libraries/</exclude-pattern>
|
||||||
<exclude-pattern>includes/api/legacy/</exclude-pattern>
|
<exclude-pattern>includes/api/legacy/</exclude-pattern>
|
||||||
|
<exclude-pattern>*/node_modules/*</exclude-pattern>
|
||||||
|
<exclude-pattern>*/vendor/*</exclude-pattern>
|
||||||
|
|
||||||
|
<!-- Configs -->
|
||||||
|
<config name="minimum_supported_wp_version" value="4.5" />
|
||||||
|
<config name="testVersion" value="5.2-"/>
|
||||||
|
|
||||||
|
<!-- Rueles -->
|
||||||
<rule ref="PHPCompatibility"/>
|
<rule ref="PHPCompatibility"/>
|
||||||
|
|
||||||
<rule ref="WordPress">
|
<rule ref="WordPress">
|
||||||
|
@ -28,5 +35,11 @@
|
||||||
<properties>
|
<properties>
|
||||||
<property name="customEscapingFunctions" type="array" value="wc_help_tip,wc_sanitize_tooltip" />
|
<property name="customEscapingFunctions" type="array" value="wc_help_tip,wc_sanitize_tooltip" />
|
||||||
</properties>
|
</properties>
|
||||||
</rule>
|
</rule>
|
||||||
|
|
||||||
|
<rule ref="WordPress.WP.I18n">
|
||||||
|
<properties>
|
||||||
|
<property name="text_domain" type="array" value="woocommerce" />
|
||||||
|
</properties>
|
||||||
|
</rule>
|
||||||
</ruleset>
|
</ruleset>
|
||||||
|
|
Loading…
Reference in New Issue