-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
36 lines (27 loc) · 1.09 KB
/
phpcs.xml.dist
File metadata and controls
36 lines (27 loc) · 1.09 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
<?xml version="1.0"?>
<ruleset name="WP-CLI-block-command">
<description>Custom ruleset for WP-CLI block-command</description>
<!-- What to scan. -->
<file>.</file>
<!-- Show progress. -->
<arg value="p"/>
<!-- Strip the filepaths down to the relevant bit. -->
<arg name="basepath" value="./"/>
<!-- Check up to 8 files simultaneously. -->
<arg name="parallel" value="8"/>
<!-- USE THE WP_CLI_CS RULESET -->
<rule ref="WP_CLI_CS"/>
<!-- PROJECT SPECIFIC CONFIGURATION -->
<!-- For help understanding the `testVersion` configuration setting:
https://github.com/PHPCompatibility/PHPCompatibility#sniffing-your-code-for-compatibility-with-specific-php-versions -->
<config name="testVersion" value="7.2-"/>
<!-- Verify that everything in the global namespace is either namespaced or prefixed -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="WP_CLI\Block"/><!-- Namespaces. -->
<element value="wpcli_block"/><!-- Global variables and such. -->
</property>
</properties>
</rule>
</ruleset>