woocommerce/phpcs.xml

41 lines
1.1 KiB
XML
Raw Normal View History

<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards">
<description>WooCommerce dev PHP_CodeSniffer ruleset.</description>
<!-- Exclude paths -->
2019-05-10 22:33:12 +00:00
<exclude-pattern>tests/</exclude-pattern>
<exclude-pattern>apigen/</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<!-- Configs -->
<config name="minimum_supported_wp_version" value="4.7" />
2019-05-10 22:33:12 +00:00
<config name="testVersion" value="5.6-" />
<!-- Rules -->
<rule ref="WooCommerce-Core" />
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="woocommerce" />
</properties>
</rule>
<rule ref="PHPCompatibility">
<exclude-pattern>tests/</exclude-pattern>
</rule>
<rule ref="WordPress.Files.FileName.InvalidClassFileName">
2019-05-30 11:08:49 +00:00
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="Generic.Commenting">
<exclude-pattern>tests/</exclude-pattern>
</rule>
<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
<exclude-pattern>i18n/</exclude-pattern>
2019-05-30 11:08:49 +00:00
<exclude-pattern>*</exclude-pattern>
</rule>
</ruleset>