-
Notifications
You must be signed in to change notification settings - Fork 69
/
phpcs-compat.xml.dist
29 lines (24 loc) · 1.18 KB
/
phpcs-compat.xml.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0"?>
<ruleset name="WooCommerce Payments PHP Compatibility">
<description>WooCommerce Compatibility PHP_CodeSniffer ruleset.</description>
<arg value="ps"/>
<arg name="parallel" value="20"/>
<arg name="extensions" value="php"/>
<!-- Exclude paths -->
<exclude-pattern>./dist/*</exclude-pattern>
<exclude-pattern>./release/*</exclude-pattern>
<exclude-pattern>./docker/*</exclude-pattern>
<exclude-pattern>./node_modules/*</exclude-pattern>
<exclude-pattern>./vendor/*</exclude-pattern>
<exclude-pattern>tests/</exclude-pattern>
<!-- Configs -->
<config name="minimum_supported_wp_version" value="6.0" />
<config name="testVersion" value="7.3-" />
<rule ref="PHPCompatibility">
<!-- WP has sodium compatibility since https://wordpress.org/support/wordpress-version/version-5-2/ -->
<exclude name="PHPCompatibility.FunctionUse.NewFunctions.sodium_crypto_box_sealFound" />
<exclude name="PHPCompatibility.Classes.NewClasses.sodiumexceptionFound" />
<!-- Debug functions are rarely used in our extensions, and are simply there for logging. -->
<exclude name="PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection" />
</rule>
</ruleset>