forked from Automattic/woocommerce-subscriptions-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
44 lines (37 loc) · 1.55 KB
/
phpcs.xml.dist
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
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for Plugins">
<description>WooCommerce Subscriptions dev PHP_CodeSniffer ruleset.</description>
<!-- Basic config -->
<config name="minimum_supported_wp_version" value="5.0" />
<!-- <arg value="psv"/>-->
<!-- Config. -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="woocommerce-subscriptions" />
</properties>
</rule>
<!-- Exclusions -->
<rule ref="WooCommerce-Core">
<exclude name="Squiz.Commenting" />
<exclude name="Generic.Commenting" />
<exclude name="Core.Commenting.CommentTags.AccessTag" />
<exclude name="Core.Commenting.CommentTags.AuthorTag" />
<exclude name="Core.Commenting.CommentTags.CategoryTag" />
<exclude name="Core.Commenting.CommentTags.CopyrightTag" />
<exclude name="Core.Commenting.CommentTags.LicenseTag" />
<exclude name="WooCommerce.Commenting.CommentTags.CategoryTag" />
<exclude name="Generic.Arrays.DisallowShortArraySyntax.Found"/>
</rule>
<!-- Files to check -->
<arg name="extensions" value="php"/>
<file>.</file>
<exclude-pattern type="relative">node_modules/*</exclude-pattern>
<exclude-pattern type="relative">vendor/*</exclude-pattern>
<exclude-pattern type="relative">includes/libraries/*</exclude-pattern>
<exclude-pattern type="relative">templates/*</exclude-pattern>
<exclude-pattern>build/*</exclude-pattern>
<!-- This is a standard that breaks the standard, keeping as is. -->
<rule ref="WordPress.Files.FileName">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
</ruleset>