-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
44 lines (35 loc) · 1.59 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
44 lines (35 loc) · 1.59 KB
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
<?xml version="1.0"?>
<ruleset name="Realode" version="2.0.5">
<description>Custom coding standard for Realode packages based on WordPress VIP standards with small tweaks</description>
<!-- Exclude vendor directory -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/.git/*</exclude-pattern>
<exclude-pattern>*/svn/*</exclude-pattern>
<!-- Show progress and sniff codes -->
<arg value="ps"/>
<!-- Show colors in console -->
<arg name="colors"/>
<!-- Only scan PHP files -->
<arg name="extensions" value="php"/>
<rule ref="WordPress-Docs"/>
<rule ref="PHPCompatibilityWP"/>
<!-- Use WordPress VIP standard as base -->
<rule ref="WordPress-VIP-Go">
<!-- Allow short array syntax instead of array() -->
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
<exclude name="Universal.Arrays.DisallowShortArraySyntax"/>
<!-- Exclude JS-related sniffs to avoid deprecation warnings (we only scan PHP files) -->
<exclude name="WordPressVIPMinimum.JS.Window"/>
<exclude name="WordPressVIPMinimum.JS.DangerouslySetInnerHTML"/>
<exclude name="WordPressVIPMinimum.JS.InnerHTML"/>
<exclude name="WordPressVIPMinimum.JS.StrippingTags"/>
<exclude name="WordPressVIPMinimum.JS.StringConcat"/>
<exclude name="WordPressVIPMinimum.JS.HTMLExecutingFunctions"/>
</rule>
<!-- Enforce short array syntax -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<!-- Set minimum PHP version for compatibility checks -->
<config name="minimum_wp_version" value="6.0"/>
<config name="testVersion" value="8.3-"/>
</ruleset>