-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
36 lines (30 loc) · 1.18 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
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards">
<description>Generally-applicable sniffs for WordPress plugins</description>
<rule ref="WordPress-Extra" />
<rule ref="WordPress-Docs" />
<rule ref="WordPress-VIP-Go" />
<rule ref="WordPress">
<exclude name="Universal.Arrays.DisallowShortArraySyntax.Found" />
<exclude name="Universal.Operators.DisallowShortTernary.Found" />
<exclude name="Generic.Arrays.DisallowShortArraySyntax.Found" />
<exclude name="WordPress.PHP.DisallowShortTernary.Found" />
</rule>
<!-- extra for rules -->
<rule ref="Generic.Files.EndFileNewline.NotFound" />
<rule ref="Generic.Arrays.DisallowLongArraySyntax" />
<arg name="colors" />
<arg value="s" />
<arg name="basepath" value="."/>
<arg name="parallel" value="50"/>
<arg name="severity" value="1"/>
<!-- /extra -->
<arg name="extensions" value="php"/>
<!-- Show sniff codes in all reports -->
<arg value="s" />
<!-- Allow invoking just `phpcs` on command line without assuming STDIN for file input. -->
<file>.</file>
<exclude-pattern>*/dev-lib/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
</ruleset>