Repository navigation
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
68 lines (58 loc) · 2.09 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
68 lines (58 loc) · 2.09 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
<?xml version="1.0"?>
<ruleset name="Flutterwave Payments">
<description>Coding standards for Flutterwave Payments.</description>
<file>.</file>
<exclude-pattern>/vendor/*</exclude-pattern>
<exclude-pattern>/node_modules/*</exclude-pattern>
<exclude-pattern>/build/*</exclude-pattern>
<exclude-pattern>/assets/*</exclude-pattern>
<exclude-pattern>/.docker/*</exclude-pattern>
<exclude-pattern>/bin/*</exclude-pattern>
<exclude-pattern>/coverage/*</exclude-pattern>
<exclude-pattern>/playwright-report/*</exclude-pattern>
<arg name="extensions" value="php"/>
<arg name="basepath" value="."/>
<arg name="parallel" value="8"/>
<arg name="colors"/>
<arg value="sp"/>
<config name="minimum_wp_version" value="6.4"/>
<config name="testVersion" value="7.4-"/>
<rule ref="WordPress"/>
<rule ref="PHPCompatibilityWP"/>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="rave-payment-forms"/>
</property>
</properties>
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="flw_"/>
<element value="flutterwave"/>
</property>
</properties>
<exclude-pattern>/tests/*</exclude-pattern>
</rule>
<!-- Views are included from inside methods, so their variables are not globals. -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound">
<exclude-pattern>/views/*</exclude-pattern>
<exclude-pattern>/blocks/*/render.php</exclude-pattern>
</rule>
<!-- src/ uses namespaced, PSR-style class names. -->
<rule ref="WordPress.Files.FileName">
<exclude-pattern>/src/*</exclude-pattern>
<exclude-pattern>/tests/*</exclude-pattern>
</rule>
<!-- Tests follow PHPUnit conventions. -->
<rule ref="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid">
<exclude-pattern>/tests/*</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting">
<exclude-pattern>/tests/*</exclude-pattern>
</rule>
<rule ref="Generic.Commenting.DocComment.MissingShort">
<exclude-pattern>/tests/*</exclude-pattern>
</rule>
</ruleset>