-
Notifications
You must be signed in to change notification settings - Fork 4
/
phpcs.xml
85 lines (72 loc) · 2.77 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?xml version="1.0" encoding="utf-8"?>
<ruleset name="WUM Project Coding Standard">
<description>WUM Project Coding Standard</description>
<!-- display progress -->
<arg value="p"/>
<!-- use colors in output -->
<arg name="colors"/>
<!-- inherit rules from: -->
<rule ref="PSR2"/>
<rule ref="Generic.PHP.DeprecatedFunctions"/>
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<rule ref="Generic.Commenting.Todo" />
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"/>
<rule ref="Generic.ControlStructures.InlineControlStructure"/>
<rule ref="Squiz.WhiteSpace.OperatorSpacing"/>
<rule ref="Generic.NamingConventions.CamelCapsFunctionName">
<properties>
<property name="strict" value="true" />
</properties>
</rule>
<rule ref="Generic.PHP.NoSilencedErrors">
<properties>
<property name="error" value="false" />
</properties>
</rule>
<rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing">
<properties>
<property name="equalsSpacing" value="1" />
</properties>
</rule>
<rule ref="Squiz.Strings.ConcatenationSpacing">
<properties>
<property name="spacing" value="1" />
<property name="ignoreNewlines" value="true" />
</properties>
</rule>
<!-- The soft limit on line length MUST be 120 characters;
automated style checkers MUST warn but MUST NOT error at the soft limit. -->
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="120"/>
<property name="absoluteLineLimit" value="0"/>
</properties>
</rule>
<!-- The closing ?> tag MUST be omitted from files containing only PHP. -->
<rule ref="Zend.Files.ClosingTag"/>
<!-- All PHP files MUST use the Unix LF (linefeed) line ending. -->
<rule ref="Generic.Files.LineEndings">
<properties>
<property name="eolChar" value="\n"/>
</properties>
</rule>
<rule ref="PSR1.Classes.ClassDeclaration">
<exclude-pattern>tests/TestCase.php</exclude-pattern>
<exclude-pattern>database/*</exclude-pattern>
</rule>
<rule ref="PSR1.Files.SideEffects">
<exclude-pattern>bootstrap/*</exclude-pattern>
<exclude-pattern>config/*</exclude-pattern>
<exclude-pattern>database/factories/*</exclude-pattern>
</rule>
<!-- Paths to check -->
<file>app</file>
<file>bootstrap</file>
<file>config</file>
<file>database</file>
<file>tests</file>
<exclude-pattern>*.blade.php</exclude-pattern>
<exclude-pattern>bootstrap/cache</exclude-pattern>
<exclude-pattern>app/Scopes</exclude-pattern>
<exclude-pattern>app/Exceptions</exclude-pattern>
</ruleset>