-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
54 lines (44 loc) · 1.88 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
44
45
46
47
48
49
50
51
52
53
54
<?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" />
<!-- Allow short syntax arrays. -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<!-- Disallow long array syntax -->
<rule ref="Generic.Arrays.DisallowShortArraySyntax.Found">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="Universal.Arrays.DisallowShortArraySyntax.Found">
<exclude-pattern>*</exclude-pattern>
</rule>
</ruleset>