forked from Automattic/vip-go-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 2
/
phpcs.xml
34 lines (24 loc) · 1000 Bytes
/
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
<?xml version="1.0"?>
<ruleset name="VIP-Go-Skeleton">
<description>WordPress and VIP Go Coding Standards</description>
<rule ref="WordPress">
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
</rule>
<rule ref="WordPress-VIP-Go" />
<rule ref="WordPressVIPMinimum" />
<rule ref="PHPCompatibility">
<exclude name="Generic.Arrays.DisallowShortArraySyntax.Found"/>
</rule>
<config name="testVersion" value="7.4-"/>
<arg name="extensions" value="php"/>
<arg value="s"/>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>.github/</exclude-pattern>
<exclude-pattern>mu-plugins</exclude-pattern>
<exclude-pattern>themes/twentytwenty</exclude-pattern>
<exclude-pattern>themes/twentytwentytwo</exclude-pattern>
<exclude-pattern>plugins/index.php</exclude-pattern>
<exclude-pattern>plugins/hello.php</exclude-pattern>
</ruleset>