-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpcs.ruleset.xml
36 lines (30 loc) · 1.7 KB
/
phpcs.ruleset.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 Theme Coding Standards">
<!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml -->
<!-- See https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/blob/develop/WordPress-Core/ruleset.xml -->
<!-- Set a description for this ruleset. -->
<description>A custom set of code standard rules to check for WordPress themes.</description>
<!-- Include the WordPress ruleset, with space for exclusions if necessary. -->
<rule ref="WordPress-Core">
<exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect" />
<exclude name="Generic.WhiteSpace.ScopeIndent.IncorrectExact" />
<exclude name="Generic.Strings.UnnecessaryStringConcat.Found" />
<exclude name="WordPress.Files.FileName.UnderscoresNotAllowed" />
<exclude name="WordPress.NamingConventions.ValidHookName.NotLowercase" />
<exclude name="WordPress.NamingConventions.ValidHookName.UseUnderscores" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="Generic.Commenting.DocComment.InvalidEndChar" />
<exclude name="WordPress.XSS.EscapeOutput.OutputNotEscaped" />
<exclude name="Generic.Commenting.DocComment.InvalidEndChar" />
<exclude name="PEAR.Functions.FunctionCallSignature.Indent" />
<exclude name="Squiz.Commenting.FileComment.SpacingAfterComment" />
<exclude name="Squiz.Commenting.FunctionComment.MissingParamTag" />
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar" />
<exclude name="Squiz.Commenting.InlineComment.NotCapital" />
<include name="WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned" />
</rule>
<rule ref="WordPress-Docs">
</rule>
<rule ref="WordPress-Extra">
</rule>
</ruleset>