-
Notifications
You must be signed in to change notification settings - Fork 153
/
phpcs.xml.dist
30 lines (25 loc) · 950 Bytes
/
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
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards">
<arg name="colors" />
<arg value="ps" />
<arg name="basepath" value="." />
<arg name="parallel" value="50" />
<arg name="extensions" value="php" />
<!-- Lint all PHP files by default. -->
<file>.</file>
<!-- Ensure all PHP code is compatible with PHP 5.6 and higher. -->
<rule ref="PHPCompatibilityWP" />
<config name="testVersion" value="5.6-"/>
<rule ref="WordPress" />
<rule ref="WordPress-VIP-Go" />
<!-- disable nonce checks on tests -->
<rule ref="WordPress.Security.NonceVerification">
<exclude-pattern>tests/*.php</exclude-pattern>
<exclude-pattern>tests/providers/*.php</exclude-pattern>
</rule>
<exclude-pattern>*/wordpress/*</exclude-pattern>
<exclude-pattern>*/dist/*</exclude-pattern>
<exclude-pattern>*/includes/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
</ruleset>