forked from codesnippetspro/code-snippets
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodesniffer.ruleset.xml
More file actions
23 lines (18 loc) · 987 Bytes
/
codesniffer.ruleset.xml
File metadata and controls
23 lines (18 loc) · 987 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0"?>
<ruleset name="Code Snippets">
<!-- 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 -->
<!-- Include the WordPress ruleset, with exclusions. -->
<rule ref="WordPress-Core">
<!-- I like to have a newline after closing brace, sometimes -->
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace" />
<!-- breaks usage of the DOM API -->
<exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar" />
<!-- allow hooks containing forward slashes -->
<exclude name="WordPress.NamingConventions.ValidHookName.UseUnderscores" />
<!-- I can manage this -->
<exclude name="WordPress.WP.I18n.UnorderedPlaceholders" />
<!-- database table names should be interpolated -->
<exclude name="WordPress.WP.PreparedSQL.NotPrepared" />
</rule>
</ruleset>