-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathphpcs.xml
More file actions
102 lines (86 loc) · 3.53 KB
/
phpcs.xml
File metadata and controls
102 lines (86 loc) · 3.53 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for Flutterwave WooCommerce">
<!--
Prevent errors caused by WordPress Coding Standards not supporting PHP 8.0+.
See https://github.com/WordPress/WordPress-Coding-Standards/issues/2035
-->
<ini name="error_reporting" value="E_ALL & ~E_DEPRECATED" />
<config name="minimum_supported_wp_version" value="4.7" />
<config name="testVersion" value="7.4+" />
<rule ref="PHPCompatibility">
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/cypress/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern type="relative">assets/build/*</exclude-pattern>
<exclude-pattern type="relative">^logs/*</exclude-pattern>
<exclude-pattern>/assets/build/js/*.js</exclude-pattern>
<exclude-pattern>*config.js</exclude-pattern>
<exclude-pattern>*/clients/*/*.js</exclude-pattern>
<exclude-pattern>.docker/*</exclude-pattern>
</rule>
<rule ref="WooCommerce-Core" />
<rule ref="WordPress-Core">
<exclude name="Generic.Arrays.DisallowShortArraySyntax" />
<exclude name="Generic.Commenting.DocComment.MissingShort" />
<exclude name="WordPress.PHP.DisallowShortTernary" />
</rule>
<rule ref="WordPress-Docs">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="WordPress-Extra" />
<config name="minimum_supported_wp_version" value="6.0.0"/>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" value="rave-woocommerce-payment-gateway"/>
</properties>
</rule>
<rule ref="WordPress.Files.FileName.InvalidClassFileName">
<exclude-pattern>src/*</exclude-pattern>
</rule>
<rule ref="WordPress.WP.GlobalVariablesOverride.Prohibited">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="WordPress.WP.AlternativeFunctions">
<exclude-pattern>bin/*</exclude-pattern>
</rule>
<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
<exclude-pattern>tests/*</exclude-pattern>
<exclude-pattern>src/*</exclude-pattern>
</rule>
<!-- Enforce PascalCase file names in src/ only. -->
<rule ref="Squiz.Classes.ClassFileName">
<include-pattern>src/*</include-pattern>
</rule>
<!-- Allow NotHyphenatedLowercase for TestCase class -->
<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
<exclude-pattern>tests/php/TestCase.php</exclude-pattern>
<exclude-pattern>tests/php/DataProvider.php</exclude-pattern>
</rule>
<!-- Limit max. consecutive blank lines to 1 instead of 2. -->
<rule ref="Squiz.WhiteSpace.FunctionSpacing">
<properties>
<property name="spacing" value="1"/>
<property name="spacingBeforeFirst" value="1"/>
<property name="spacingAfterLast" value="0"/>
</properties>
</rule>
<arg value="s"/>
<arg name="extensions" value="php"/>
<file>.</file>
<!-- Strip the filepaths down to the relevant bit. -->
<arg name="basepath" value="./"/>
<!-- Check up to 20 files simultaneously. -->
<arg name="parallel" value="20"/>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/cypress/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern type="relative">assets/build/*</exclude-pattern>
<exclude-pattern type="relative">^logs/*</exclude-pattern>
<exclude-pattern>*/assets/*</exclude-pattern>
<exclude-pattern>*/clients/*</exclude-pattern>
<exclude-pattern>build/*.asset.php</exclude-pattern>
<exclude-pattern>*/clients/blocks/*.js</exclude-pattern>
<exclude-pattern>*/clients/*/*.js</exclude-pattern>
<exclude-pattern>*config.js</exclude-pattern>
<exclude-pattern>*/./docker/*</exclude-pattern>
</ruleset>