-
Notifications
You must be signed in to change notification settings - Fork 26
/
phpcs.xml
38 lines (29 loc) · 1.27 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="WordPress Coding Standards">
<description>WordPress Coding Standards</description>
<!-- Scan all files in directory -->
<file>.</file>
<!-- Scan only PHP files -->
<arg name="extensions" value="php"/>
<!-- Show progress, show the error codes for each message (source). -->
<arg value="ps" />
<!-- Check up to 8 files simultaneously. -->
<arg name="parallel" value="8"/>
<!-- Exclude the Composer Vendor directory. -->
<exclude-pattern>/vendor/*</exclude-pattern>
<!-- Exclude minified Javascript files. -->
<exclude-pattern>*.min.js</exclude-pattern>
<!-- Include the WordPress-Extra standard. -->
<rule ref="WordPress-Extra">
<exclude name="Universal.Arrays.DisallowShortArraySyntax.Found"/>
<exclude name="Generic.ControlStructures.InlineControlStructure.NotAllowed"/>
<exclude name="Squiz.PHP.EmbeddedPhp.ContentBeforeEnd"/>
<exclude name="Squiz.PHP.EmbeddedPhp.ContentBeforeOpen"/>
<exclude name="WordPress.PHP.DisallowShortTernary.Found"/>
</rule>
<!-- Let's also check that everything is properly documented. -->
<!--<rule ref="WordPress-Docs"/>-->
<rule ref="Internal.NoCodeFound">
<severity>0</severity>
</rule>
</ruleset>