-
Notifications
You must be signed in to change notification settings - Fork 1
/
.phpcs.xml.dist
31 lines (25 loc) · 1.04 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
<?xml version="1.0"?>
<ruleset name="Coding standards for stellarwp/container">
<!--
Usage instructions: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage
Annotated ruleset: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml
-->
<!-- What to scan: -->
<file>./src</file>
<file>./tests</file>
<!-- What to ignore: -->
<exclude-pattern>./tests/coverage</exclude-pattern>
<!-- Show progresss & use colors. -->
<arg value="sp"/>
<arg name="colors"/>
<!-- Enables parallel processing when available for faster results. -->
<arg name="parallel" value="8"/>
<!-- Strip the file paths down to the relevant bit and only apply to .php files. -->
<arg name="basepath" value="./"/>
<arg name="extensions" value="php"/>
<!-- Include the StellarWP standards. -->
<rule ref="StellarWP">
<!-- This can cause issues when re-throwing exceptions. -->
<exclude name="Squiz.Commenting.FunctionCommentThrowTag.WrongNumber" />
</rule>
</ruleset>