woocommerce-paypal-payments/phpcs.xml.dist
Anton Ukhanev 3d39f3b2a9 Configure PHPCS
Now will use config instead of CLI values for most things.
Will also show sniff codes.
2021-08-26 11:08:27 +02:00

36 lines
1 KiB
XML

<?xml version="1.0"?>
<ruleset name="WooCommerce Coding Standards">
<description>WooCommerce PayPal Payments ruleset.</description>
<!-- Configs -->
<config name="minimum_supported_wp_version" value="5.3" />
<config name="testVersion" value="7.1-" />
<!-- Rules -->
<rule ref="WooCommerce-Core" />
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="woocommerce-paypal-payments" />
</properties>
</rule>
<rule ref="PHPCompatibility">
<exclude-pattern>tests/</exclude-pattern>
</rule>
<rule ref="WordPress">
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
</rule>
<arg name="extensions" value="php"/>
<file>src</file>
<file>modules</file>
<file>woocommerce-paypal-payments.php</file>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>./tests/*</exclude-pattern>
<exclude-pattern>*/resources/*</exclude-pattern>
</ruleset>