forked from wpmetabox/meta-box
-
Notifications
You must be signed in to change notification settings - Fork 1
/
codesniffer.ruleset.xml
24 lines (23 loc) · 1.32 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
<?xml version="1.0"?>
<ruleset name="Meta Box WordPress Plugin Coding Standards">
<!-- Set a description for this ruleset. -->
<description>A custom set of code standard rules to check for Meta Box.</description>
<!-- Include the WordPress ruleset, with exclusions. -->
<rule ref="WordPress">
<exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect" />
<exclude name="Generic.ControlStructures.InlineControlStructure.NotAllowed" />
<exclude name="WordPress.WhiteSpace.ControlStructureSpacing" />
<exclude name="WordPress.VIP.DirectDatabaseQuery" />
<exclude name="WordPress.VIP.ValidatedSanitizedInput" />
<exclude name="WordPress.VIP.PostsPerPage.posts_per_page" />
<exclude name="WordPress.VIP.RestrictedFunctions.get_term_link" />
<exclude name="WordPress.XSS.EscapeOutput" />
<exclude name="WordPress.Arrays.ArrayKeySpacingRestrictions.NoSpacesAroundArrayKeys" />
<exclude name="WordPress.WP.EnqueuedResources" />
<exclude name="PEAR.Functions.FunctionCallSignature.Indent" />
<exclude name="Squiz.WhiteSpace.SuperfluousWhitespace.EndLine" />
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis" />
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace" />
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword" />
</rule>
</ruleset>