Repository navigation
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
70 lines (57 loc) · 2.74 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
70 lines (57 loc) · 2.74 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
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0"?>
<ruleset name="WP-CLI-bundle">
<description>Custom ruleset for WP-CLI-bundle</description>
<!--
#############################################################################
COMMAND LINE ARGUMENTS
For help understanding this file: https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Annotated-ruleset.xml
For help using PHPCS: https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Usage
#############################################################################
-->
<!-- What to scan. -->
<file>.</file>
<!-- Prefixed copies of third-party packages, generated by utils/prefix-dependencies.php. -->
<exclude-pattern>*/third_party/*</exclude-pattern>
<!-- 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 SNIFFS
#############################################################################
-->
<!-- 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-"/>
<!--
#############################################################################
SELECTIVE EXCLUSIONS
#############################################################################
-->
<!-- These are procedural stand-alone files that are never loaded in a
WordPress context, so these files do not have to comply with WP naming
conventions. -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<exclude-pattern>*/utils/get-package-require-from-composer\.php$</exclude-pattern>
<exclude-pattern>*/utils/make-phar\.php$</exclude-pattern>
<exclude-pattern>*/utils/prefix-dependencies\.php$</exclude-pattern>
<exclude-pattern>*/utils/scoper/prefixed-packages\.php$</exclude-pattern>
<exclude-pattern>*/utils/scoper/scoper\.inc\.php$</exclude-pattern>
</rule>
<rule ref="WordPress.WP.GlobalVariablesOverride">
<exclude-pattern>*/utils/get-package-require-from-composer\.php$</exclude-pattern>
<exclude-pattern>*/utils/make-phar\.php$</exclude-pattern>
<exclude-pattern>*/utils/prefix-dependencies\.php$</exclude-pattern>
<exclude-pattern>*/utils/scoper/prefixed-packages\.php$</exclude-pattern>
<exclude-pattern>*/utils/scoper/scoper\.inc\.php$</exclude-pattern>
</rule>
</ruleset>