forked from roots/soil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml.dist
28 lines (23 loc) · 830 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
<?xml version="1.0"?>
<ruleset name="Soil">
<description>PSR12 with PHP 5.6+ 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"/>
<!-- Support for PHP 5.6+ -->
<config name="testVersion" value="5.6-"/>
<file>soil.php</file>
<file>src</file>
<file>tests</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>