-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpcs.xml
More file actions
76 lines (61 loc) · 2.38 KB
/
Copy pathphpcs.xml
File metadata and controls
76 lines (61 loc) · 2.38 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
<?xml version="1.0"?>
<ruleset name="Integration Alegra WooCommerce">
<description>WordPress Coding Standards for Integration Alegra WooCommerce Plugin</description>
<!-- Scan these files -->
<file>./includes</file>
<file>./integration-alegra-woo.php</file>
<!-- Exclude patterns -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/assets/*</exclude-pattern>
<!-- Show progress -->
<arg value="ps"/>
<!-- Colors in output -->
<arg name="colors"/>
<!-- Show sniff codes in all reports -->
<arg value="ns"/>
<!-- Use WordPress Coding Standards -->
<rule ref="WordPress">
<!-- Allow array short syntax -->
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
<!-- Allow short echo syntax -->
<exclude name="WordPress.Security.EscapeOutput"/>
</rule>
<!-- Use WordPress-Extra rules -->
<rule ref="WordPress-Extra">
<!-- Exclude some rules that might be too strict -->
<exclude name="WordPress.Files.FileName"/>
<exclude name="WordPress.NamingConventions.ValidVariableName"/>
</rule>
<!-- Use WordPress-Docs rules -->
<rule ref="WordPress-Docs"/>
<!-- Check for PHP cross-version compatibility -->
<config name="testVersion" value="8.1-"/>
<rule ref="PHPCompatibilityWP"/>
<!-- Minimum WordPress version -->
<config name="minimum_supported_wp_version" value="6.0"/>
<!-- Allow for plugin-specific exceptions -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="integration-alegra-woo"/>
</property>
</properties>
</rule>
<!-- Verify that everything is properly prefixed -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="integration_alegra"/>
<element value="Integration_Alegra"/>
</property>
</properties>
</rule>
<!-- Set the minimum supported WP version -->
<rule ref="WordPress.WP.DeprecatedFunctions">
<properties>
<property name="minimum_supported_version" value="6.0"/>
</properties>
</rule>
</ruleset>