-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
39 lines (31 loc) · 1.26 KB
/
phpcs.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
<?xml version="1.0"?>
<ruleset name="Kebo Theme">
<!-- 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 -->
<description>Kebo Theme PHP_CodeSniffer ruleset.</description>
<config name="installed_paths" value="vendor/wp-coding-standards/wpcs" />
<!-- Exclude paths -->
<exclude-pattern>wp-admin/</exclude-pattern>
<exclude-pattern>wp-includes/</exclude-pattern>
<exclude-pattern>index.php</exclude-pattern>
<exclude-pattern>xmlrpc.php</exclude-pattern>
<exclude-pattern>/node_modules/*</exclude-pattern>
<exclude-pattern>/vendor/*</exclude-pattern>
<!-- WordPress Rules -->
<rule ref="WordPress">
</rule>
<!-- WordPress-Extra Rules -->
<rule ref="WordPress-Extra">
<!--
<exclude name="WordPress.WhiteSpace.ControlStructureSpacing"/>
<exclude name="WordPress.Security.EscapeOutput"/>
-->
</rule>
<!-- WordPress-Docs Rules -->
<rule ref="WordPress-Docs"/>
<!-- Add in some extra rules from other standards. -->
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"/>
<rule ref="Generic.Commenting.Todo"/>
<!-- Configs -->
<config name="minimum_supported_wp_version" value="4.7" />
</ruleset>