forked from roots/acorn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml.dist
30 lines (25 loc) · 927 Bytes
/
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
<?xml version="1.0"?>
<ruleset name="Acorn">
<description>PSR12 with PHP 8.0+ compatibility</description>
<arg name="extensions" value="php"/>
<arg name="colors"/>
<arg value="sp"/>
<!-- PHP compatibility takes precedent over PSR12 -->
<rule ref="PHPCompatibility"/>
<rule ref="PSR12">
<!-- Ignore all Illuminate files -->
<exclude-pattern>src/Illuminate/*</exclude-pattern>
</rule>
<!-- Support for PHP 8.0+ -->
<config name="testVersion" value="8.0-"/>
<file>acorn.php</file>
<file>src/Roots</file>
<!-- We should be cognizant of long lines, but handle it case-by-case -->
<rule ref="Generic.Files.LineLength.TooLong">
<severity>1</severity>
</rule>
<!-- I like to use snake_case for test names -->
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
</ruleset>