generated from specialtactics/laravel-api-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
64 lines (51 loc) · 2.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
<?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>app</file>
<file>config</file>
<file>resources/views</file>
<!-- Specify paths to never check -->
<exclude-pattern>*/storage/*</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>*/vendor/*</exclude-pattern>
<!-- ================================================ -->
<!-- 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.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>