forked from ledyer/ledyer-order-management-for-woocommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
37 lines (28 loc) · 1.15 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
<?xml version="1.0"?>
<ruleset name="Krokedil Coding Standards">
<description>WooCommerce dev PHP_CodeSniffer ruleset.</description>
<!-- Exclude vendor and node_modules from all rules -->
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<!-- Exclude the tests folder -->
<exclude-pattern>tests/*</exclude-pattern>
<!-- Exclude the build folder -->
<exclude-pattern>build/*</exclude-pattern>
<!-- Exclude css and js folders -->
<exclude-pattern>*\.(css|js)</exclude-pattern>
<!-- Configs - Maybe? -->
<config name="minimum_supported_wp_version" value="6.2" />
<config name="testVersion" value="7.3-" />
<!-- Use Wordpress Coding standards -->
<rule ref="WordPress" />
<!-- Enforce the correct text-domain -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="nfc-events" />
</properties>
</rule>
<!-- Allow the usage of shorthand arrays -->
<rule ref="Universal.Arrays.DisallowShortArraySyntax.Found">
<exclude-pattern>.</exclude-pattern>
</rule>
</ruleset>