-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
100 lines (87 loc) · 3.77 KB
/
phpcs.xml.dist
File metadata and controls
100 lines (87 loc) · 3.77 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
<?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">
<exclude name="WordPress.Security.EscapeOutput.ExceptionNotEscaped" />
<exclude name="WordPress.WP.GetMetaSingle.Missing" />
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.Found" />
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed" />
<exclude name="Universal.Operators.DisallowShortTernary.Found" />
<exclude name="Universal.CodeAnalysis.NoEchoSprintf.Found" />
<exclude name="Universal.NamingConventions.NoReservedKeywordParameterNames.arrayFound" />
<exclude name="Universal.NamingConventions.NoReservedKeywordParameterNames.newFound" />
<exclude name="Universal.NamingConventions.NoReservedKeywordParameterNames.listFound" />
<exclude name="Universal.NamingConventions.NoReservedKeywordParameterNames.resourceFound" />
<exclude name="Universal.NamingConventions.NoReservedKeywordParameterNames.defaultFound" />
<exclude name="Universal.NamingConventions.NoReservedKeywordParameterNames.classFound" />
<exclude name="Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound" />
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="woocommerce-paypal-payments" />
</property>
</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.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>
<rule ref="WordPress.WP.Capabilities">
<properties>
<property name="custom_capabilities" type="array">
<element value="manage_woocommerce"/>
</property>
</properties>
</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>