-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
phpcs.xml.dist
59 lines (45 loc) · 2.16 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
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
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PHPCSExtra" xsi:noNamespaceSchemaLocation="./vendor/squizlabs/php_codesniffer/phpcs.xsd">
<description>Check the code of the PHPCSExtra package itself.</description>
<!--
#############################################################################
COMMAND LINE ARGUMENTS
https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Annotated-ruleset.xml
#############################################################################
-->
<file>.</file>
<!-- Exclude Composer vendor directory. -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<!-- 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"/>
<!--
#############################################################################
USE THE PHPCSDev RULESET
#############################################################################
-->
<rule ref="PHPCSDev">
<!-- Allow for the file docblock on the line directly following the PHP open tag.
As the sniff in PHPCS does not use modular error codes (yet - see PR #2729),
the complete error code needs to be disabled, not just the bit involving
the file docblocks.
-->
<exclude name="PSR12.Files.FileHeader.SpacingAfterBlock"/>
</rule>
<!-- Set minimum PHP version supported to PHP 5.4. -->
<config name="testVersion" value="5.4-"/>
<!--
#############################################################################
SELECTIVE EXCLUSIONS
Exclude specific files for specific sniffs and/or exclude sub-groups in sniffs.
#############################################################################
-->
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
<exclude-pattern>/phpunit-bootstrap\.php$</exclude-pattern>
</rule>
</ruleset>