-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
40 lines (34 loc) · 1.45 KB
/
phpcs.xml.dist
File metadata and controls
40 lines (34 loc) · 1.45 KB
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
<?xml version="1.0"?>
<ruleset name="Custom">
<arg name="extensions" value="php"/>
<arg name="cache" value="/tmp/.phpcs.cache"/>
<arg name="parallel" value="8"/>
<config name="testVersion" value="8.0"/>
<config name="minimum_supported_wp_version" value="6.0"/>
<file>src/</file>
<rule ref="PHPCompatibility"/>
<rule ref="PHPCompatibilityWP"/>
<rule ref="WordPress-Core">
<exclude name="Squiz.Commenting.FunctionComment.IncorrectTypeHint" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
<exclude name="Universal.Arrays.DisallowShortArraySyntax.Found"/>
<exclude name="Generic.Commenting.DocComment.MissingShort"/>
<exclude name="WordPress.Security.EscapeOutput.ExceptionNotEscaped"/>
<exclude name="Squiz.Commenting.FunctionCommentThrowTag.WrongNumber"/>
<exclude name="Squiz.Commenting.FileComment" />
</rule>
<rule ref="WordPress-Docs"/>
<rule ref="WordPress-Extra"/>
<rule ref="WordPress.WhiteSpace.ControlStructureSpacing">
<properties>
<property name="blank_line_check" value="true"/>
</properties>
</rule>
<rule ref="Squiz.Commenting.FunctionComment">
<properties>
<property name="skipIfInheritdoc" value="true"/>
</properties>
</rule>
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
</ruleset>