-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
33 lines (27 loc) · 1.06 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
<?xml version="1.0"?>
<ruleset name="BoxUK">
<description>BoxUK Coding Standards</description>
<arg name="colors" />
<arg name="severity" value="1" />
<arg name="parallel" value="80" />
<arg value="sp" />
<arg name="cache" value=".phpcs-cache" />
<arg name="extensions" value="php"/> <!-- Limit to PHP -->
<config name="minimum_supported_wp_version" value="6.4" />
<config name="prefixes" value="" />
<config name="text_domain" value="boxuk" />
<file>./packages/</file>
<exclude-pattern>/vendor</exclude-pattern>
<exclude-pattern>/build</exclude-pattern>
<exclude-pattern>/node_modules</exclude-pattern>
<exclude-pattern>/coverage</exclude-pattern>
<exclude-pattern>/packages/index.php</exclude-pattern>
<rule ref="WordPress-VIP-Go">
<!-- Remove this so we can use PSR-4 autoloading -->
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
</rule>
<rule ref="WordPress-Extra"></rule>
<rule ref="WordPress-Docs" />
<rule ref="Generic.Files.EndFileNewline" />
</ruleset>