-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
43 lines (35 loc) · 1.5 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
39
40
41
42
43
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards">
<description>WordPress Coding Standards ruleset</description>
<file>.</file>
<!-- Exclude paths -->
<exclude-pattern>/vendor/</exclude-pattern>
<exclude-pattern>/languages/</exclude-pattern>
<exclude-pattern>*.js</exclude-pattern>
<exclude-pattern>/classes/class-tgm-plugin-activation.php</exclude-pattern>
<!-- Show progress, show the error codes for each message (source) -->
<arg value="ps" />
<!-- Check up to 8 files simultaneously -->
<arg name="parallel" value="8" />
<!-- Include the WordPress-Core standard -->
<rule ref="WordPress-Core">
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent" />
<exclude name="Generic.Arrays.DisallowShortArraySyntax.Found" />
<exclude name="WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase" />
<exclude name="WordPress.PHP.DisallowShortTernary.Found" />
<exclude name="WordPress.PHP.YodaConditions" />
</rule>
<rule ref="WordPress.Files.FileName">
<exclude-pattern>/classes/class-tgm-plugin-activation.php</exclude-pattern>
</rule>
<rule ref="Internal.NoCodeFound">
<severity>0</severity>
</rule>
<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="indent" value="4" />
<property name="tabIndent" value="false" />
</properties>
</rule>
<rule ref="Generic.WhiteSpace.DisallowTabIndent" />
</ruleset>