-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
95 lines (75 loc) · 2.78 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
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
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards">
<description>WooCommerce dev PHP_CodeSniffer ruleset.</description>
<file>.</file>
<!-- Show progress, show the error codes for each message (source). -->
<arg value="ps" />
<!-- Strip the filepaths in reports down to the relevant bit. -->
<arg name="basepath" value="./" />
<!-- Check up to 8 files simultaneously. -->
<arg name="parallel" value="8" />
<!-- Configs -->
<config name="minimum_supported_wp_version" value="6.6" />
<config name="testVersion" value="7.4-" />
<!-- Rules -->
<rule ref="WooCommerce-Core" />
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="merchant-buddy" />
</properties>
</rule>
<rule ref="PHPCompatibility">
<exclude-pattern>tests/</exclude-pattern>
</rule>
<rule ref="Generic.PHP.RequireStrictTypes">
<include-pattern>includes/</include-pattern>
</rule>
<rule ref="WordPress.WP.Capabilities">
<properties>
<property name="custom_capabilities" type="array">
<element key="0" value="download_file"/>
<element key="1" value="read_product"/>
<element key="2" value="edit_products"/>
<element key="3" value="edit_private_products"/>
<element key="4" value="edit_others_products"/>
<element key="5" value="edit_product"/>
<element key="6" value="publish_shop_orders"/>
<element key="7" value="edit_shop_orders"/>
<element key="8" value="edit_others_shop_orders"/>
<element key="9" value="view_order"/>
<element key="10" value="pay_for_order"/>
<element key="11" value="order_again"/>
<element key="12" value="cancel_order"/>
<element key="13" value="read_private_shop_orders"/>
<element key="14" value="customer"/>
<element key="15" value="manage_woocommerce"/>
<element key="16" value="manage_product_terms"/>
<element key="17" value="view_woocommerce_reports"/>
</property>
</properties>
</rule>
<rule ref="Squiz.Classes.ClassFileName">
<include-pattern>includes/*</include-pattern>
</rule>
<rule ref="Squiz.Classes.ValidClassName">
<include-pattern>includes/*</include-pattern>
</rule>
<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
<exclude-pattern>includes/</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.FileComment.MissingPackageTag">
<exclude-pattern>includes/</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.FileComment.Missing">
<exclude-pattern>includes/</exclude-pattern>
</rule>
<rule ref="WordPress.Files.FileName.InvalidClassFileName">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.FileComment.MissingPackageTag">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.InlineComment.InvalidEndChar">
<exclude-pattern>*</exclude-pattern>
</rule>
</ruleset>