mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
75 lines
2.5 KiB
XML
75 lines
2.5 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="6.3" />
|
|
<config name="testVersion" value="7.4-" />
|
|
|
|
<!-- 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" />
|
|
<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>
|
|
<exclude name="Squiz.Commenting.FunctionComment.MissingParamTag" />
|
|
<exclude name="Squiz.Commenting.FunctionComment.MissingParamComment" />
|
|
<exclude name="Squiz.Commenting.FunctionComment.Missing" />
|
|
</rule>
|
|
<rule ref="Squiz.Commenting.VariableComment">
|
|
<exclude name="Squiz.Commenting.VariableComment.MissingVar" />
|
|
<exclude name="Squiz.Commenting.VariableComment.Missing" />
|
|
</rule>
|
|
<rule ref="Squiz.Commenting.FileComment">
|
|
<exclude name="Squiz.Commenting.FileComment.Missing" />
|
|
<exclude name="Squiz.Commenting.FileComment.MissingPackageTag" />
|
|
</rule>
|
|
<rule ref="Squiz.Commenting.ClassComment">
|
|
<exclude name="Squiz.Commenting.ClassComment.Missing" />
|
|
</rule>
|
|
<rule ref="Generic.Commenting.DocComment">
|
|
<exclude name="Generic.Commenting.DocComment.MissingShort" />
|
|
</rule>
|
|
|
|
<arg name="extensions" value="php"/>
|
|
<file>api</file>
|
|
<file>src</file>
|
|
<file>modules</file>
|
|
<file>woocommerce-paypal-payments.php</file>
|
|
<file>modules.php</file>
|
|
<file>bootstrap.php</file>
|
|
<file>scoper.inc.php</file>
|
|
|
|
<exclude-pattern>*/node_modules/*</exclude-pattern>
|
|
<exclude-pattern>*/vendor/*</exclude-pattern>
|
|
<exclude-pattern>./tests/*</exclude-pattern>
|
|
<exclude-pattern>*/resources/*</exclude-pattern>
|
|
<exclude-pattern>*.asset.php</exclude-pattern>
|
|
</ruleset>
|