-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
49 lines (35 loc) · 1.06 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
40
41
42
43
44
45
46
47
48
49
<?xml version="1.0"?>
<ruleset name="WordPress">
<description>PHPCS ruleset for WordPress</description>
<!-- Files + Paths -->
<file>.</file>
<exclude-pattern>/vendor/</exclude-pattern>
<arg name="extensions" value="php"/>
<!-- Reports -->
<arg value="psv"/>
<arg name="report" value="summary"/>
<arg name="colors"/>
<!-- Ruleset -->
<rule ref="WordPress">
<exclude name="Squiz.Commenting.InlineComment"/>
<exclude name="Squiz.PHP.CommentedOutCode.Found"/>
</rule>
<rule ref="WordPress-Core">
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
</rule>
<rule ref="WordPress.WP.DeprecatedFunctions">
<properties>
<property name="minimum_supported_version" value="5.3"/>
</properties>
</rule>
<rule ref="WordPress.Files.FileName">
<properties>
<property name="is_theme" value="true"/>
</properties>
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array" value="CODECONUT"/>
</properties>
</rule>
</ruleset>