-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
phpcs.xml
53 lines (41 loc) · 1.84 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
<?xml version="1.0"?>
<ruleset name="Laravel API Boilerplate PHPCS Ruleset">
<!-- ================================================ -->
<!-- Basic Config -->
<!-- ================================================ -->
<description>This is the PHP coding standard used for the Laravel API boilerplate</description>
<!-- Specify Paths to check -->
<file>src</file>
<!-- ================================================ -->
<!-- Commandline Flags -->
<!-- ================================================ -->
<arg name="colors"/>
<arg value="sp"/>
<!-- ================================================ -->
<!-- Rules -->
<!-- ================================================ -->
<!-- Ref: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Customisable-Sniff-Properties -->
<!-- PSR1 Set -->
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
<type>warning</type>
</rule>
<rule ref="PSR1">
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/>
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols"/>
</rule>
<!-- PSR2 Set -->
<rule ref="PSR2">
<exclude name="PSR2.Files.EndFileNewline.NoneFound"/>
<exclude name="PSR2.ControlStructures.ElseIfDeclaration.NotAllowed"/>
<exclude name="PSR2.ControlStructures.ControlStructureSpacing"/>
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine"/>
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace"/>
<exclude name="Squiz.WhiteSpace.ControlStructureSpacing.SpacingAfterOpen"/>
</rule>
<rule ref="Generic.Files.LineLength">
<exclude-pattern>*/routes/*</exclude-pattern>
<properties>
<property name="lineLimit" value="200"/>
</properties>
</rule>
</ruleset>