-
-
Notifications
You must be signed in to change notification settings - Fork 53
/
phpcs.xml
43 lines (34 loc) · 1.33 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
40
41
42
43
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="Passbook">
<rule ref="PSR12">
<!-- We don't have line length (line width) limits. -->
<exclude name="Generic.Files.LineLength"/>
</rule>
<!-- display progress -->
<arg value="p"/>
<arg name="colors"/>
<!-- No lines with only whitespace -->
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace">
<properties>
<property name="ignoreBlankLines" value="false"/>
</properties>
</rule>
<!-- Ensure 1 blank line before and after functions, except at the top and bottom. -->
<rule ref="Squiz.WhiteSpace.FunctionSpacing">
<properties>
<property name="spacing" value="1" />
<property name="spacingBeforeFirst" value="0" />
<property name="spacingAfterLast" value="0" />
</properties>
</rule>
<rule ref="Squiz.WhiteSpace.MemberVarSpacing">
<properties>
<property name="spacing" value="1"/>
<property name="spacingBeforeFirst" value="0" />
</properties>
</rule>
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<!-- If string doesn't contain variables or single quotes, use single quotes. -->
<rule ref="Squiz.Strings.DoubleQuoteUsage.NotRequired"/>
<exclude-pattern>/vendor/*</exclude-pattern>
</ruleset>