-
Notifications
You must be signed in to change notification settings - Fork 0
/
.phpcs.xml
60 lines (50 loc) · 1.86 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
<?xml version="1.0"?>
<ruleset name="Laravel Code Standard" namespace="Laravel\CS\Standard">
<description>Code Standard used for Laravel App</description>
<file>./app</file>
<file>./routes</file>
<file>./tests</file>
<exclude-pattern>./bootstrap/*</exclude-pattern>
<exclude-pattern>./config/*</exclude-pattern>
<exclude-pattern>./database/*</exclude-pattern>
<exclude-pattern>./public/*</exclude-pattern>
<exclude-pattern>./resources/*</exclude-pattern>
<exclude-pattern>./storage/*</exclude-pattern>
<exclude-pattern>./vendor/*</exclude-pattern>
<arg name="colors"/>
<rule ref="PSR2" />
<rule ref="Generic.Arrays.DisallowLongArraySyntax" />
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="110" />
<property name="absoluteLineLimit" value="110" />
</properties>
</rule>
<rule ref="PSR2.Methods.FunctionCallSignature">
<properties>
<property name="allowMultipleArguments" value="true" />
</properties>
</rule>
<rule ref="PSR1.Methods.CamelCapsMethodName">
<exclude-pattern>./tests/*</exclude-pattern>
</rule>
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array"
value="session_start=>NULL,
$_SESSION=>session,
$_POST=>request,
$_GET=>request,
eval=>NULL,
dd=>NULL,
var_dump=>NULL,
sizeof=>count,
delete=>unset" />
</properties>
</rule>
<rule ref="Squiz.PHP.CommentedOutCode">
<properties>
<property name="maxPercentage" value="75" />
</properties>
</rule>
</ruleset>