-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
32 lines (25 loc) · 910 Bytes
/
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
<?xml version="1.0"?>
<ruleset name="26b-WordPress">
<description>26b coding standards for WordPress projects.</description>
<exclude-pattern>*/phpunit.xml*</exclude-pattern>
<exclude-pattern>*/languages/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<!-- Yoda conditions, we must ignore -->
<rule ref="WordPress.PHP.YodaConditions.NotYoda">
<severity>0</severity>
</rule>
<!-- Ignore lowercase filenames -->
<rule ref="Generic.Files.LowercasedFilename.NotFound">
<severity>0</severity>
</rule>
<!-- Ignore Short Array Syntax -->
<rule ref="Generic.Arrays.DisallowShortArraySyntax.Found">
<severity>0</severity>
</rule>
<rule ref="WordPress.Files.FileName">
<severity>0</severity>
</rule>
<rule ref="WordPress-Extra" />
</ruleset>