-
Notifications
You must be signed in to change notification settings - Fork 19
/
.phpcs.xml
33 lines (29 loc) · 982 Bytes
/
.phpcs.xml
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="Slim coding standard">
<description>Slim coding standard</description>
<!-- Paths to check -->
<file>tests</file>
<file>src</file>
<exclude-pattern>*/src/router\.php$</exclude-pattern>
<exclude-pattern>*/src/translations/.*$</exclude-pattern>
<!-- display progress -->
<arg value="p"/>
<!-- use colors in output -->
<arg name="colors"/>
<!-- inherit rules from: -->
<!-- inherit rules from: -->
<rule ref="PSR2">
<exclude name="PSR2.Classes.PropertyDeclaration.Underscore"/>
<exclude name="PSR2.Methods.MethodDeclaration.Underscore"/>
</rule>
<rule ref="PSR1">
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/>
</rule>
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="170"/>
<property name="absoluteLineLimit" value="190"/>
</properties>
</rule>
</ruleset>