-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpcs.xml
More file actions
56 lines (49 loc) · 1.62 KB
/
phpcs.xml
File metadata and controls
56 lines (49 loc) · 1.62 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
45
46
47
48
49
50
51
52
53
54
55
56
<?xml version="1.0"?>
<ruleset name="DMYIP">
<description>WordPress Coding Standards for Dynamic Month Year Into Posts</description>
<!-- What to scan -->
<file>.</file>
<exclude-pattern>/vendor/</exclude-pattern>
<exclude-pattern>/node_modules/</exclude-pattern>
<exclude-pattern>/build/</exclude-pattern>
<exclude-pattern>/includes/</exclude-pattern>
<exclude-pattern>/tests/</exclude-pattern>
<exclude-pattern>/assets/</exclude-pattern>
<exclude-pattern>index.php</exclude-pattern>
<!-- How to scan -->
<arg value="sp"/>
<arg name="basepath" value="."/>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="8"/>
<!-- Rules: WordPress Coding Standards -->
<rule ref="WordPress">
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
<!-- Allow modern short array syntax -->
<exclude name="Universal.Arrays.DisallowShortArraySyntax"/>
</rule>
<!-- Rules: WordPress VIP -->
<rule ref="WordPress-Extra"/>
<!-- PHP Compatibility -->
<config name="testVersion" value="7.4-"/>
<rule ref="PHPCompatibilityWP"/>
<!-- Text domain -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="dynamic-month-year-into-posts"/>
</property>
</properties>
</rule>
<!-- Prefixes -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="dmyip"/>
<element value="DMYIP"/>
<element value="DYNAMIC_MONTH_YEAR_INTO_POSTS"/>
</property>
</properties>
</rule>
</ruleset>