-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
41 lines (36 loc) · 1.15 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
<?xml version="1.0"?>
<ruleset
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
>
<!-- Paths -->
<file>./src</file>
<file>./tests</file>
<file>./bin</file>
<!-- Args -->
<arg value="p"/>
<arg value="s"/>
<arg name="colors"/>
<arg name="cache" value="build/phpcs/.cache"/>
<arg name="basepath" value="."/>
<arg name="extensions" value="php"/>
<!-- Config -->
<config name="default_standard" value="PSR12"/>
<config name="ignore_errors_on_exit" value="1"/>
<config name="ignore_warnings_on_exit" value="1"/>
<config name="testVersion" value="8.0-"/>
<!-- Rules -->
<rule ref="PSR12"/>
<rule ref="Suin.Classes.PSR4"/>
<rule ref="PHPCompatibility"/>
<!-- Disable Default Squiz Checks -->
<rule ref="Squiz">
<exclude name="Squiz"/>
</rule>
<!-- Disable camel case method name rule for tests -->
<rule ref="PSR1.Methods.CamelCapsMethodName">
<exclude-pattern>./tests/Suites</exclude-pattern>
<exclude-pattern>./tests/Support/Bases</exclude-pattern>
<exclude-pattern>./tests/Support/Partials</exclude-pattern>
</rule>
</ruleset>