-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcodesniffer.ruleset.xml
29 lines (22 loc) · 1.26 KB
/
codesniffer.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
<?xml version="1.0"?>
<ruleset name="Cover WordPress Theme Coding Standards Configuration">
<!-- 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 Cover.</description>
<!-- Include the WordPress ruleset, with exclusions. -->
<rule ref="WordPress">
<exclude name="PEAR.Functions.FunctionCallSignature.Indent" />
<exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect" />
<exclude name="Generic.WhiteSpace.ScopeIndent.IncorrectExact" />
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed" />
<exclude name="WordPress.XSS.EscapeOutput" />
<exclude name="WordPress.WhiteSpace.ScopeIndent.Incorrect" />
<exclude name="WordPress.Variables.GlobalVariables" />
<exclude name="WordPress.VIP.RestrictedFunctions.get_tag_link" /> <!-- why is get_tag_link prohibited? -->
<exclude name="WordPress.Functions.DontExtract.extract" /> <!-- extract is needed for Color Posts plugin -->
</rule>
<rule ref="WordPress-VIP">
<exclude name="WordPress.VIP.RestrictedFunctions" />
</rule>
</ruleset>