-
Notifications
You must be signed in to change notification settings - Fork 3
/
phpcs.xml
28 lines (24 loc) · 1.04 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
<?xml version="1.0"?>
<ruleset name="Custom WordPress Standards">
<ini name="error_reporting" value="E_ALL & ~E_DEPRECATED" />
<rule ref="WordPress">
<exclude name="Generic.Commenting.DocComment.MissingShort" />
<exclude name="Generic.Files.LineEndings.InvalidEOLChar" />
<exclude name="Squiz.Commenting.ClassComment.Missing" />
<exclude name="Squiz.Commenting.FileComment.Missing" />
<exclude name="Squiz.Commenting.FunctionComment.Missing" />
<exclude name="WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound" />
</rule>
<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
<exclude-pattern>*\.asset\.php</exclude-pattern>
</rule>
<exclude-pattern>tests/*</exclude-pattern>
<exclude-pattern>build/*</exclude-pattern>
<exclude-pattern>bootstrap\.php$</exclude-pattern>
<exclude-pattern>scoper\.inc\.php$</exclude-pattern>
<exclude-pattern>*\.(css|js)</exclude-pattern>
<config name="testVersion" value="5.6-"/>
<rule ref="PHPCompatibilityWP">
<include-pattern>*\.php$</include-pattern>
</rule>
</ruleset>