-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
69 lines (56 loc) · 1.98 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
64
65
66
67
68
69
<?xml version="1.0"?>
<ruleset name="Coding Standards">
<arg value="spv"/>
<arg name="parallel" value="8"/>
<arg name="cache"/>
<arg name="extensions" value="php"/>
<arg name="colors"/>
<file>./some-theme/</file>
<exclude-pattern>*/.vscode/*</exclude-pattern>
<exclude-pattern>/dev/files/*</exclude-pattern>
<exclude-pattern>*/.git/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<rule ref="VariableAnalysis"/>
<rule ref="WPThemeReview">
<!-- These are bugged. -->
<exclude name="WPThemeReview.CoreFunctionality.PrefixAllGlobals"/>
<exclude name="WPThemeReview.Plugins.CorrectTGMPAVersion"/>
</rule>
<!-- For some reason, WordPress set needs to also be
included, even tho WPThemeReview includes it. -->
<rule ref="WordPress">
<!-- These are bugged. -->
<exclude name="WordPress.WP.I18n"/>
<exclude name="WordPress.NamingConventions.PrefixAllGlobals"/>
</rule>
<!-- Better Admin Bump. -->
<rule ref="WPThemeReview">
<exclude name="WPThemeReview.PluginTerritory.AdminBarRemoval.HidingDetected"/>
</rule>
<!-- Better function signatures -->
<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>
<!-- Better Arrays -->
<rule ref="Generic.Arrays.DisallowShortArraySyntax">
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
</rule>
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<!-- Is a theme -->
<rule ref="WordPress.Files.FileName">
<properties>
<property name="is_theme" value="true" />
</properties>
</rule>
<!-- Latest WP -->
<config name="minimum_supported_wp_version" value="5.9.2"/>
<!-- Latest PHP -->
<rule ref="./dev/test-version-override.xml"/>
</ruleset>