-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml.dist
29 lines (25 loc) · 1.02 KB
/
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
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards based custom ruleset">
<!-- What to scan -->
<ini name="error_reporting" value="E_ALL & ~E_DEPRECATED" />
<file>./</file>
<exclude-pattern>/build/</exclude-pattern>
<exclude-pattern>/vendor/</exclude-pattern>
<exclude-pattern>node_modules</exclude-pattern>
<exclude-pattern>*.asset.php</exclude-pattern>
<exclude-pattern>*.js</exclude-pattern>
<arg value="ps"/>
<arg name="basepath" value="."/>
<arg name="extensions" value="php"/>
<arg name="colors"/>
<!-- Rules: Check PHP version compatibility -->
<config name="testVersion" value="8.0-"/>
<config name="minimum_supported_wp_version" value="6.6"/>
<rule ref="WordPress">
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar" />
<exclude name="Squiz.Commenting.FunctionComment.ParamCommentFullStop" />
</rule>
<rule ref="PHPCompatibilityWP"/>
</ruleset>