-
Notifications
You must be signed in to change notification settings - Fork 4
/
.phpcs.xml
31 lines (26 loc) · 895 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
<?xml version="1.0"?>
<ruleset name="Coding standards">
<config name="testVersion" value="7.1-"/>
<file>wp-modern-settings-page-boilerplate.php</file>
<exclude-pattern>build/*</exclude-pattern>
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>node_modules/*</exclude-pattern>
<arg name="basepath" value="."/>
<arg value="ps"/>
<arg name="colors"/>
<arg name="parallel" value="100"/>
<arg name="extensions" value="php"/>
<arg name="cache" value="node_modules/.phpcs.cache"/>
<rule ref="PHPCompatibility"/>
<rule ref="WordPress"/>
<rule ref="Generic.Metrics.NestingLevel">
<properties>
<property name="absoluteNestingLevel" value="5"/>
</properties>
</rule>
<!-- Allow short array syntax -->
<rule ref="Generic.Arrays.DisallowShortArraySyntax.Found">
<severity>0</severity>
</rule>
<rule ref="Generic.Arrays.DisallowLongArraySyntax.Found"/>
</ruleset>