-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
38 lines (33 loc) · 1.36 KB
/
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
35
36
37
38
<?xml version="1.0"?>
<ruleset name="ThemePlate">
<description>The code standard rules for ThemePlate.</description>
<!-- Strip the file paths down to the relevant bit. -->
<arg name="basepath" value="./" />
<!-- A comma separated list of file extensions to check. -->
<arg name="extensions" value="php" />
<!-- Show sniff and progress. -->
<arg value="sp" />
<!-- Enables parallel processing when available for faster results. -->
<arg name="parallel" value="8" />
<!-- Scan with colors. -->
<arg name="colors" />
<!-- What to scan. -->
<file>.</file>
<!-- Exclude the Composer Vendor directory. -->
<exclude-pattern>/vendor/</exclude-pattern>
<!-- Include PHP cross-version compatibility. -->
<config name="testVersion" value="7.4-" />
<!-- Include minimum supported WP version. -->
<config name="minimum_supported_wp_version" value="5.9" />
<!-- Include the WordPress ruleset. -->
<rule ref="WordPress-Extra" />
<!-- Include PHP Compatibility Coding Standard for WordPress. -->
<rule ref="PHPCompatibilityWP" />
<!-- Custom Rules -->
<rule ref="WordPress.Files">
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
<exclude name="PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose" />
<exclude name="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody" />
</rule>
</ruleset>