-
Notifications
You must be signed in to change notification settings - Fork 4
/
phpcs.xml
63 lines (52 loc) · 1.91 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version="1.0"?>
<ruleset name="WordPress Theme Coding Standards">
<arg value="sv"/>
<arg name="parallel" value="8"/>
<arg name="cache"/>
<arg name="extensions" value="php"/>
<arg name="colors"/>
<!-- Check all files in theme directory and the directories below it. -->
<file>./dist</file>
<exclude-pattern>*/bin/*</exclude-pattern>
<exclude-pattern>./html/*</exclude-pattern>
<exclude-pattern>./initdb/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>./ssl/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>./svn/*</exclude-pattern>
<exclude-pattern>*/\.git/*</exclude-pattern>
<rule ref="WordPress-Extra"/>
<rule ref="WordPress-Docs"/>
<rule ref="WPThemeReview">
<include-pattern>*/dist/theme/*\.php</include-pattern>
</rule>
<rule ref="PEAR.Functions.FunctionCallSignature">
<properties>
<property name="allowMultipleArguments" value="true" />
</properties>
</rule>
<rule ref="PEAR.Functions.FunctionCallSignature">
<exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket"/>
<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine"/>
</rule>
<rule ref="Generic.Arrays.DisallowShortArraySyntax">
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="scripts-n-styles" />
</properties>
</rule>
<!-- Allow for theme specific exceptions to the file name rules based
on the theme hierarchy. -->
<rule ref="WordPress.Files.FileName">
<properties>
<property name="is_theme" value="true" />
</properties>
</rule>
<config name="minimum_supported_wp_version" value="5.4.0"/>
<!-- Necessary to work-around the inability to set minimum php version here. -->
<rule ref="./test-version-override.xml"/>
<rule ref="PHPCompatibility"/>
<rule ref="VariableAnalysis"/>
</ruleset>