Repository navigation
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
58 lines (42 loc) · 1.89 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
58 lines (42 loc) · 1.89 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 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="CIG Coding Standards" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
<description>The coding standards for CIG's coding standard library</description>
<!--
#############################################################################
COMMAND LINE ARGUMENTS
https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml
#############################################################################
-->
<file>.</file>
<!-- Only check PHP files. -->
<arg name="extensions" value="php"/>
<!-- Show progress, show the error codes for each message (source). -->
<arg value="ps"/>
<!-- Strip the filepaths down to the relevant bit. -->
<arg name="basepath" value="."/>
<!-- Check up to 8 files simultaneously. -->
<arg name="parallel" value="8"/>
<!-- Enable caching to a fixed file. -->
<arg name="cache" value=".phpcs.cache"/>
<!-- Ignore git, in case someone created a branch ending in ".php" or something -->
<exclude-pattern>/.git/*</exclude-pattern>
<!--
You can hard-code ignore patterns directly into your
custom standard so you don't have to specify the
patterns on the command line.
The following two tags are equivalent to the command line argument:
-ignore=*/tests/*,*/data/*
-->
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<rule ref="CIG" />
<!--
#############################################################################
USE THE PHPCSDev RULESET
This ruleset checks code against PSR2, PHPCompatibility and various
other sniffs.
For more information, see: https://github.com/PHPCSStandards/PHPCSDevTools
#############################################################################
-->
<config name="testVersion" value="7.2-"/>
</ruleset>