-
Notifications
You must be signed in to change notification settings - Fork 6
/
phpcs.ruleset.xml
46 lines (41 loc) · 2.19 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
37
38
39
40
41
42
43
44
45
46
<?xml version="1.0"?>
<ruleset name="WSUWP Spine Parent Theme">
<!-- Config flags for PHPCS
s flag: Show sniff codes in all reports.
v flag: Print verbose output.
-->
<arg value="sv"/>
<!-- Check only PHP files -->
<arg name="extensions" value="php"/>
<!-- Check all files in this directory and the directories below it. -->
<file>.</file>
<description>Sniffs for the coding standards used in WSUWP Themes</description>
<rule ref="WordPress-Extra">
<!-- Rules from WSUWP Theme Skeleton repository -->
<exclude name="WordPress.NamingConventions.ValidFunctionName" />
<exclude name="WordPress.Files.FileName" />
<exclude name="WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned" />
<exclude name="Squiz.PHP.EmbeddedPhp.NoSemicolon" />
<exclude name="Squiz.PHP.EmbeddedPhp.ContentBeforeEnd" />
<exclude name="Squiz.PHP.EmbeddedPhp.ContentBeforeOpen" />
<exclude name="Squiz.PHP.EmbeddedPhp.ContentAfterOpen" />
<exclude name="Squiz.PHP.EmbeddedPhp.ContentAfterEnd" />
<exclude name="Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace" />
<exclude name="Generic.Formatting.MultipleStatementAlignment.NotSameWarning" />
<!-- Rules custom to the Spine Parent Theme -->
<exclude name="WordPress.NamingConventions.ValidVariableName" />
<exclude name="WordPress.XSS.EscapeOutput" />
<exclude name="WordPress.CSRF.NonceVerification" />
<exclude name="Generic.Formatting.DisallowMultipleStatements" />
<exclude name="Generic.WhiteSpace.ScopeIndent" />
<exclude name="WordPress.PHP.StrictComparisons" />
<exclude name="WordPress.PHP.StrictInArray" />
<exclude name="WordPress.WP.EnqueuedResources" />
<exclude name="WordPress.WP.PreparedSQL" />
<exclude name="WordPress.NamingConventions.ValidHookName" />
<exclude name="Squiz.PHP.DisallowMultipleAssignments" />
<exclude name="WordPress.WP.I18n.MissingTranslatorsComment" />
<exclude name="Squiz.PHP.EmbeddedPhp.MultipleStatements" />
<exclude name="WordPress.WhiteSpace.PrecisionAlignment.Found" />
</rule>
</ruleset>