-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
25 lines (19 loc) · 827 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
<?xml version="1.0"?>
<ruleset name="ThemePlate">
<!-- Set a description for this ruleset. -->
<description>The code standard rules for ThemePlate.</description>
<!-- A comma separated list of file extensions to check. -->
<arg name="extensions" value="php" />
<!-- Exclude the Composer Vendor directory. -->
<exclude-pattern>/vendor/</exclude-pattern>
<!-- Include the WordPress ruleset. -->
<rule ref="WordPress-Core"/>
<rule ref="WordPress.Files.FileName">
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
</rule>
<!-- Include PHP cross-version compatibility. -->
<config name="testVersion" value="5.6-"/>
<!-- Include PHP Compatibility Coding Standard for WordPress. -->
<rule ref="PHPCompatibilityWP" />
</ruleset>