forked from woocommerce/woocommerce-gateway-amazon-pay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
45 lines (41 loc) · 1.5 KB
/
phpcs.xml
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
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards">
<!-- Process everything in the project -->
<file>.</file>
<!-- But only files with a php extension -->
<arg name="extensions" value="php" />
<!-- Exclude paths -->
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<!-- Configs -->
<config name="minimum_supported_wp_version" value="4.7" />
<!-- Check for cross-version support for PHP 5.6 and higher. -->
<config name="testVersion" value="5.6-" />
<!-- Rules -->
<rule ref="WooCommerce-Core">
<!-- TODO: Use full ruleset, fix these later. -->
<exclude name="WordPress.Security.NonceVerification"/>
<exclude name="WordPress.Security.EscapeOutput"/>
<exclude name="WordPress.Security.ValidatedSanitizedInput"/>
<exclude name="Squiz.PHP.CommentedOutCode.Found"/>
<exclude name="Generic.Commenting.Todo.TaskFound"/>
<exclude name="Generic.Commenting.Todo.CommentFound"/>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="woocommerce-gateway-amazon-payments-advanced"/>
</property>
</properties>
</rule>
<rule ref="PHPCompatibility">
<exclude-pattern>tests/</exclude-pattern>
</rule>
<rule ref="WordPress.Files.FileName.InvalidClassFileName">
<exclude-pattern>includes/**/abstract-*.php</exclude-pattern>
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="Generic.Commenting">
<exclude-pattern>tests/</exclude-pattern>
</rule>
</ruleset>