-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphpcs.xml.dist
33 lines (26 loc) · 951 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
31
32
33
<?xml version="1.0"?>
<ruleset name="Gamajo DateRange">
<description>The code standard for Gamajo dateRange package.</description>
<!-- What to scan -->
<file>.</file>
<exclude-pattern>vendor/</exclude-pattern>
<!-- How to scan -->
<arg value="sp"/> <!-- Show sniff and progress -->
<arg name="basepath" value="."/><!-- Strip the file paths down to the relevant bit -->
<arg name="colors"/>
<arg name="extensions" value="php"/>
<arg name="report" value="full"/>
<arg name="report" value="summary"/>
<arg name="report" value="source"/>
<!-- Rules: ObjectCalisthenics for good coding practices -->
<rule ref="ObjectCalisthenics">
<exclude-pattern>/tests</exclude-pattern>
</rule>
<!-- Rules: Good use of variables -->
<rule ref="VariableAnalysis"/>
<!-- Rules: Check PHP version compatibility -->
<config name="testVersion" value="7.1-"/>
<rule ref="PHPCompatibility"/>
<!-- Rules: PSR-2 -->
<rule ref="PSR2"/>
</ruleset>