| 1 |
<?xml version="1.0"?> |
| 2 |
<ruleset name="WooCommerce Coding Standards"> |
| 3 |
<description>Generally-applicable sniffs for WooCommerce plugins</description> |
| 4 |
|
| 5 |
<!-- Configs --> |
| 6 |
<config name="minimum_supported_wp_version" value="4.7"/> |
| 7 |
<config name="testVersion" value="5.6-"/> |
| 8 |
|
| 9 |
<!-- Rules --> |
| 10 |
<rule ref="WordPress"> |
| 11 |
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/> |
| 12 |
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/> |
| 13 |
</rule> |
| 14 |
|
| 15 |
<rule ref="vendor/woocommerce/woocommerce-sniffs/src/WooCommerce-Core/ruleset.xml"/> |
| 16 |
<rule ref="PHPCompatibility"/> |
| 17 |
|
| 18 |
<!-- Args --> |
| 19 |
<arg name="extensions" value="php"/> |
| 20 |
<arg value="s"/> |
| 21 |
|
| 22 |
<!-- Excludes --> |
| 23 |
<exclude-pattern>*/dev-lib/*</exclude-pattern> |
| 24 |
<exclude-pattern>*/node_modules/*</exclude-pattern> |
| 25 |
<exclude-pattern>*/vendor/*</exclude-pattern> |
| 26 |
<exclude-pattern>.github/</exclude-pattern> |
| 27 |
</ruleset> |
| 28 |
|