-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpcs.xml.dist
33 lines (25 loc) · 1 KB
/
phpcs.xml.dist
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
<?xml version="1.0"?>
<ruleset name="WP-CLI-database">
<description>Custom ruleset for WP-CLI database 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"/>
<!-- 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="5.6-"/>
<!-- Rules: Include the base ruleset for WP-CLI projects. -->
<rule ref="WP_CLI_CS"/>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="Nilambar\WP_CLI_Database"/><!-- Namespaces. -->
<element value="wpcli_database_command"/><!-- Global variables and such. -->
</property>
</properties>
</rule>
</ruleset>