woocommerce-paypal-payments/phpcs.xml.dist

58 lines
1.7 KiB
Text
Raw Permalink Normal View History

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" />
2022-11-14 10:21:01 +02:00
<config name="testVersion" value="7.2-" />
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>
<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
<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" />
<exclude name="WordPress.PHP.YodaConditions.NotYoda" />
</rule>
<rule ref="WooCommerce">
<exclude name="WooCommerce.Commenting.CommentHooks.MissingHookComment" />
<exclude name="WooCommerce.Commenting.CommentHooks.MissingSinceComment" />
</rule>
<rule ref="WooCommerce">
<exclude name="WooCommerce.Commenting.CommentHooks.MissingSinceComment" />
</rule>
<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"/>
2023-03-14 16:40:20 +02:00
<file>api</file>
<file>src</file>
<file>modules</file>
<file>woocommerce-paypal-payments.php</file>
<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>
2022-12-20 16:04:11 +02:00
<exclude-pattern>*.asset.php</exclude-pattern>
2020-03-19 16:47:08 +01:00
</ruleset>