-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathphpcs.xml
39 lines (33 loc) · 1.25 KB
/
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
34
35
36
37
38
39
<?xml version="1.0"?>
<ruleset name="PSR-MOD">
<description>Based on PSR-2</description>
<rule ref="PSR2">
<!-- exclude rules -->
<exclude name="PSR1.Classes.ClassDeclaration"/>
<exclude name="PSR1.Files.SideEffects"/>
<exclude name="Squiz.WhiteSpace.SuperfluousWhitespace"/>
<!-- exclude files -->
<exclude-pattern>*.md</exclude-pattern>
<exclude-pattern>*/views/*</exclude-pattern>
</rule>
<!-- Use single quote -->
<rule ref="Squiz.Strings.DoubleQuoteUsage" />
<rule ref="Squiz.Strings.DoubleQuoteUsage.ContainsVar">
<severity>0</severity>
</rule>
<!-- Ignore missing namespace for migrations -->
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
<exclude-pattern>*/migrations/*</exclude-pattern>
</rule>
<!-- Ignore camel caps format for class name of migrations -->
<rule ref="Squiz.Classes.ValidClassName.NotCamelCaps">
<exclude-pattern>*/migrations/*</exclude-pattern>
</rule>
<!-- Line Length -->
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="120"/>
<property name="absoluteLineLimit" value="120"/>
</properties>
</rule>
</ruleset>