Repository navigation
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
53 lines (45 loc) · 1.46 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
53 lines (45 loc) · 1.46 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
<?xml version="1.0"?>
<ruleset name="ClawPress">
<description>WordPress Coding Standards for ClawPress</description>
<!-- What to scan -->
<file>.</file>
<exclude-pattern>/vendor/</exclude-pattern>
<exclude-pattern>/node_modules/</exclude-pattern>
<exclude-pattern>/build/</exclude-pattern>
<exclude-pattern>/tests/</exclude-pattern>
<exclude-pattern>/ideas/</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">
<!-- Allow short array syntax -->
<exclude name="Universal.Arrays.DisallowShortArraySyntax"/>
</rule>
<!-- Allow short array syntax -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<!-- Set minimum supported WordPress version -->
<config name="minimum_wp_version" value="6.9"/>
<!-- Check for cross-version PHP compatibility -->
<config name="testVersion" value="8.1-"/>
<!-- Text domain for i18n -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="clawpress"/>
</property>
</properties>
</rule>
<!-- Prefixes for hooks, options, etc. -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="clawpress"/>
<element value="ClawPress"/>
</property>
</properties>
</rule>
</ruleset>