forked from grappler/ns-theme-check
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
32 lines (25 loc) · 909 Bytes
/
phpcs.xml.dist
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
<?xml version="1.0"?>
<ruleset name="WordPress Theme Sniffer">
<description>Coding standard for the WordPress Theme Sniffer plugin.</description>
<arg value="sp"/>
<arg name="extensions" value="php"/>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/bin/*</exclude-pattern>
<exclude-pattern>*/assets/*</exclude-pattern>
<rule ref="WordPress-Extra"/>
<rule ref="WordPress-Docs"/>
<rule ref="WordPress.Arrays.MultipleStatementAlignment">
<properties>
<property name="alignMultilineItems" value="!=100"/>
</properties>
</rule>
<rule ref="WordPress">
<exclude name="WordPress.PHP.YodaConditions" />
</rule>
<rule ref="WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents">
<severity>0</severity>
</rule>
<config name="testVersion" value="7.0-"/>
<rule ref="PHPCompatibility"/>
</ruleset>