2016-08-27 14:18:14 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<ruleset name="WordPress Coding Standards">
|
2017-09-27 16:07:41 +00:00
|
|
|
<description>WooCommerce dev PHP_CodeSniffer ruleset.</description>
|
2016-08-27 14:18:14 +00:00
|
|
|
|
2017-11-09 18:32:04 +00:00
|
|
|
<!-- Exclude paths -->
|
|
|
|
<exclude-pattern>tests/cli/</exclude-pattern>
|
|
|
|
<exclude-pattern>includes/libraries/</exclude-pattern>
|
2018-03-07 21:48:56 +00:00
|
|
|
<exclude-pattern>includes/legacy/</exclude-pattern>
|
2017-11-09 18:32:04 +00:00
|
|
|
<exclude-pattern>includes/api/legacy/</exclude-pattern>
|
2017-11-28 20:16:45 +00:00
|
|
|
<exclude-pattern>includes/api/v1/</exclude-pattern>
|
2018-03-15 20:23:40 +00:00
|
|
|
<exclude-pattern>includes/class-wc-geo-ip.php</exclude-pattern>
|
2018-03-07 21:48:56 +00:00
|
|
|
<exclude-pattern>includes/wc-deprecated-functions.php</exclude-pattern>
|
2017-11-21 12:41:55 +00:00
|
|
|
<exclude-pattern>*/node_modules/*</exclude-pattern>
|
|
|
|
<exclude-pattern>*/vendor/*</exclude-pattern>
|
2017-11-09 18:32:04 +00:00
|
|
|
|
2017-11-21 12:41:55 +00:00
|
|
|
<!-- Configs -->
|
2017-11-22 15:57:48 +00:00
|
|
|
<config name="minimum_supported_wp_version" value="4.7" />
|
2019-06-21 12:41:10 +00:00
|
|
|
<config name="testVersion" value="5.6-" />
|
2017-11-21 12:41:55 +00:00
|
|
|
|
2017-11-21 12:47:42 +00:00
|
|
|
<!-- Rules -->
|
2017-12-21 23:29:49 +00:00
|
|
|
<rule ref="WooCommerce-Core" />
|
2017-11-09 18:32:04 +00:00
|
|
|
|
2017-11-21 12:41:55 +00:00
|
|
|
<rule ref="WordPress.WP.I18n">
|
|
|
|
<properties>
|
|
|
|
<property name="text_domain" type="array" value="woocommerce" />
|
|
|
|
</properties>
|
|
|
|
</rule>
|
2018-11-06 22:58:50 +00:00
|
|
|
|
|
|
|
<rule ref="PHPCompatibility">
|
|
|
|
<exclude-pattern>tests/</exclude-pattern>
|
|
|
|
</rule>
|
|
|
|
|
2017-11-27 12:57:16 +00:00
|
|
|
<rule ref="WordPress.Files.FileName.InvalidClassFileName">
|
|
|
|
<exclude-pattern>includes/**/abstract-*.php</exclude-pattern>
|
2018-01-15 17:02:39 +00:00
|
|
|
<exclude-pattern>tests/*</exclude-pattern>
|
2019-06-25 12:13:04 +00:00
|
|
|
<exclude-pattern>src/*</exclude-pattern>
|
2017-11-27 12:57:16 +00:00
|
|
|
</rule>
|
2018-11-06 22:58:50 +00:00
|
|
|
|
2018-01-22 03:23:48 +00:00
|
|
|
<rule ref="Generic.Commenting">
|
|
|
|
<exclude-pattern>tests/</exclude-pattern>
|
|
|
|
</rule>
|
2018-11-06 22:58:50 +00:00
|
|
|
|
2018-01-22 03:42:05 +00:00
|
|
|
<rule ref="PEAR.Functions.FunctionCallSignature.EmptyLine">
|
|
|
|
<exclude-pattern>tests/e2e-tests/</exclude-pattern>
|
|
|
|
</rule>
|
2018-03-06 11:08:28 +00:00
|
|
|
|
2018-03-06 13:32:56 +00:00
|
|
|
<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
|
|
|
|
<exclude-pattern>i18n/</exclude-pattern>
|
2019-06-25 12:13:04 +00:00
|
|
|
<exclude-pattern>src/</exclude-pattern>
|
2018-03-06 13:32:56 +00:00
|
|
|
</rule>
|
2016-08-27 14:18:14 +00:00
|
|
|
</ruleset>
|