-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
39 lines (31 loc) · 1.27 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
<?xml version="1.0"?>
<ruleset
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd"
name="PHP Coding Standard">
<description>PHP Coding Standard</description>
<arg name="basepath" value="."/>
<arg name="parallel" value="80"/>
<!-- Ignore warnings, show progress of the run and show sniff names -->
<arg value="nps"/>
<!-- The directories to apply the rules -->
<file>./app/</file>
<file>./tests/</file>
<!-- Show the warning but exit with 0. The Warning is fine -->
<config name="ignore_warnings_on_exit" value="1"/>
<!-- Check for cross-version support for PHP 7.4 or higher. Requires PHPCompatibility -->
<config name="testVersion" value="7.4-"/>
<!-- Include full Doctrine Coding Standard -->
<rule ref="Syntatis"/>
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
<properties>
<property name="rootNamespaces" type="array">
<element key="app" value="Syntatis\Utils"/>
<element key="tests/app" value="Syntatis\Utils\Tests"/>
</property>
</properties>
</rule>
<!-- Enable PHPCompatibility ruleset to enable version compatibility test -->
<rule ref="PHPCompatibility"/>
<exclude-pattern>/cache/</exclude-pattern>
</ruleset>