-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
58 lines (50 loc) · 1.94 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
58 lines (50 loc) · 1.94 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
57
58
<?xml version="1.0"?>
<ruleset name="Blockwright Workbench">
<description>WordPress Coding Standards for the Blockwright Workbench plugin</description>
<!-- What to scan (plugin PHP only). -->
<file>blockwright-workbench.php</file>
<file>inc</file>
<!-- What to skip. -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/scripts/*</exclude-pattern>
<!-- Default CLI behaviour. -->
<arg name="colors"/>
<arg name="report" value="full"/>
<arg name="report-width" value="120"/>
<arg value="p"/> <!-- progress -->
<arg value="s"/> <!-- show sniff codes -->
<arg name="extensions" value="php"/>
<arg name="parallel" value="8"/>
<!-- Standards. -->
<rule ref="WordPress-Core"/>
<rule ref="WordPress-Extra"/>
<rule ref="WordPress-Docs"/>
<!-- PHP compatibility: match the plugin header "Requires PHP: 7.4". -->
<config name="testVersion" value="7.4-"/>
<rule ref="PHPCompatibilityWP"/>
<!-- WordPress target: match the plugin header "Requires at least: 7.0". -->
<config name="minimum_wp_version" value="7.0"/>
<!-- i18n text domain (matches the plugin slug). -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="blockwright-workbench"/>
</property>
</properties>
</rule>
<!-- Global prefixes for functions/classes/hooks/constants/globals. The plugin
namespaces its PHP under Blockwright_Workbench\; constants use
BLOCKWRIGHT_WORKBENCH_ (and the BLOCKWRIGHT_WORKBENCH opt-in flag);
hooks/handles/options use the blockwright- / blockwright_workbench_ prefix. -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="Blockwright_Workbench"/>
<element value="BLOCKWRIGHT_WORKBENCH"/>
<element value="blockwright_workbench"/>
<element value="blockwright"/>
</property>
</properties>
</rule>
</ruleset>