-
Notifications
You must be signed in to change notification settings - Fork 1
/
codesniffer.mitlib.xml
30 lines (27 loc) · 1.14 KB
/
codesniffer.mitlib.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
<?xml version="1.0"?>
<ruleset name="MITlib-WordPress">
<!-- 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>
<!-- Set which third-party files are exluded from analysis -->
<exclude-pattern>/navwalker.php</exclude-pattern>
<!-- Include the WordPress ruleset, with exclusions. -->
<rule ref="WordPress">
<!-- Exclude non-security sniffs -->
<exclude name="Generic" />
<exclude name="PEAR" />
<exclude name="PSR2" />
<exclude name="Squiz" />
<exclude name="WordPress.Arrays" />
<exclude name="WordPress.Classes" />
<exclude name="WordPress.CodeAnalysis" />
<exclude name="WordPress.DB" />
<exclude name="WordPress.Files" />
<exclude name="WordPress.NamingConventions" />
<exclude name="WordPress.PHP" />
<exclude name="WordPress.Utils" />
<exclude name="WordPress.WP" />
<exclude name="WordPress.WhiteSpace" />
</rule>
</ruleset>