2020-03-19 16:47:08 +01:00
|
|
|
<?xml version="1.0"?>
|
2020-08-27 11:07:01 +03:00
|
|
|
<ruleset name="WooCommerce Coding Standards">
|
2021-08-19 10:12:44 +03:00
|
|
|
<description>WooCommerce PayPal Payments ruleset.</description>
|
2020-04-06 11:16:18 +03:00
|
|
|
|
2020-08-27 11:07:01 +03:00
|
|
|
<!-- Configs -->
|
2021-08-19 10:12:44 +03:00
|
|
|
<config name="minimum_supported_wp_version" value="5.3" />
|
2021-07-14 14:58:23 +02:00
|
|
|
<config name="testVersion" value="7.1-" />
|
2020-04-06 11:16:18 +03:00
|
|
|
|
2020-08-27 11:07:01 +03:00
|
|
|
<!-- Rules -->
|
|
|
|
<rule ref="WooCommerce-Core" />
|
|
|
|
|
|
|
|
<rule ref="WordPress.WP.I18n">
|
|
|
|
<properties>
|
2020-10-08 20:03:07 -03:00
|
|
|
<property name="text_domain" type="array" value="woocommerce-paypal-payments" />
|
2020-08-27 11:07:01 +03:00
|
|
|
</properties>
|
|
|
|
</rule>
|
|
|
|
|
|
|
|
<rule ref="PHPCompatibility">
|
|
|
|
<exclude-pattern>tests/</exclude-pattern>
|
|
|
|
</rule>
|
2020-09-17 16:53:17 -03:00
|
|
|
|
2021-02-17 14:10:49 +01:00
|
|
|
<rule ref="WordPress">
|
|
|
|
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
|
|
|
|
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
|
2021-09-13 15:24:43 +02:00
|
|
|
<exclude name="WordPress.PHP.DisallowShortTernary" />
|
2021-02-17 14:10:49 +01:00
|
|
|
</rule>
|
|
|
|
|
2021-08-30 08:18:10 +02:00
|
|
|
<rule ref="Squiz.Commenting.FunctionComment">
|
|
|
|
<properties>
|
|
|
|
<property name="skipIfInheritdoc" value="true" />
|
|
|
|
</properties>
|
|
|
|
</rule>
|
|
|
|
|
2020-09-17 16:53:17 -03:00
|
|
|
<arg name="extensions" value="php"/>
|
2021-02-17 14:25:42 +01:00
|
|
|
<file>src</file>
|
|
|
|
<file>modules</file>
|
|
|
|
<file>woocommerce-paypal-payments.php</file>
|
2021-09-14 08:30:30 +02:00
|
|
|
<file>modules.php</file>
|
|
|
|
<file>bootstrap.php</file>
|
2020-09-17 16:53:17 -03:00
|
|
|
|
|
|
|
<exclude-pattern>*/node_modules/*</exclude-pattern>
|
|
|
|
<exclude-pattern>*/vendor/*</exclude-pattern>
|
|
|
|
<exclude-pattern>./tests/*</exclude-pattern>
|
2021-08-19 10:12:15 +03:00
|
|
|
<exclude-pattern>*/resources/*</exclude-pattern>
|
2020-03-19 16:47:08 +01:00
|
|
|
</ruleset>
|