-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
99 lines (77 loc) · 3.24 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?xml version="1.0"?>
<ruleset name="Laravel Standards">
<description>The Laravel Coding Standards</description>
<rule ref="PSR12">
<exclude name="PSR12.Traits.UseDeclaration.MultipleImport" />
</rule>
<rule ref="PSR1">
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/>
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols"/>
<exclude name="PSR1.Classes.ClassDeclaration.MultipleClasses" />
</rule>
<rule ref="PSR2">
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps"/>
<!-- Excluded to avoid conflict with the same rule (!??!) in PSR12. -->
<exclude name="PSR2.ControlStructures.ControlStructureSpacing"/>
</rule>
<!-- View templates don't necessarily start with <?php (because some are just pure html) -->
<rule ref="PSR12.Files.FileHeader.HeaderPosition">
<exclude-pattern>*/views/*</exclude-pattern>
</rule>
<!-- We like to have a space after the ! operator. -->
<rule ref="Generic.Formatting.SpaceAfterNot" />
<!-- Rules to improve array formatting. -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax" />
<rule ref="Generic.Arrays.ArrayIndent" />
<rule ref="Squiz.Arrays.ArrayDeclaration.DoubleArrowNotAligned" />
<rule ref="Generic.VersionControl.GitMergeConflict" />
<rule ref="Squiz.PHP.NonExecutableCode" />
<!-- Remove trailing whitespace, multiple blank lines within functions, etc. -->
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace">
<properties>
<property name="ignoreBlankLines" value="false"/>
</properties>
</rule>
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.StartFile">
<severity>10</severity>
</rule>
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EndFile">
<severity>10</severity>
</rule>
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines">
<severity>10</severity>
</rule>
<rule ref="Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace">
<severity>10</severity>
</rule>
<!-- indentation of 4 spaces -->
<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="exact" value="true" />
</properties>
</rule>
<exclude-pattern>*/_ide_helper.php</exclude-pattern>
<exclude-pattern>*/cache/*</exclude-pattern>
<exclude-pattern>*/*.js</exclude-pattern>
<exclude-pattern>*/*.css</exclude-pattern>
<exclude-pattern>*/*.xml</exclude-pattern>
<exclude-pattern>*/*.blade.php</exclude-pattern>
<exclude-pattern>*/autoload.php</exclude-pattern>
<exclude-pattern>*/storage/*</exclude-pattern>
<exclude-pattern>*/docs/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/migrations/*</exclude-pattern>
<exclude-pattern>*/config/*</exclude-pattern>
<exclude-pattern>*/public/index.php</exclude-pattern>
<file>app</file>
<file>database</file>
<file>config</file>
<file>public</file>
<file>resources</file>
<file>routes</file>
<file>tests</file>
<arg name="colors"/>
<arg value="spvn"/>
<ini name="memory_limit" value="512M"/>
</ruleset>