-
Notifications
You must be signed in to change notification settings - Fork 16
/
phpcs.xml
68 lines (52 loc) · 2.71 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
<?xml version="1.0"?>
<ruleset name="Laravel Modified PSR-1">
<description>
A custom coding standard mostly based on PSR-1, adapted to Laravel.
</description>
<exclude-pattern>app/views/*</exclude-pattern>
<exclude-pattern>*/start/*</exclude-pattern>
<rule ref="PSR2">
<exclude name="PSR2.Classes.ClassDeclaration.OpenBraceNewLine"/>
<exclude name="PSR2.Interface.InterfaceDeclaration.OpenBraceNewLine"/>
<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine"/>
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction"/>
<exclude name="Generic.ControlStructures.InlineControlStructure.NotAllowed"/>
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction"/>
<exclude name="PSR2.ControlStructures.ControlStructureSpacing"/>
<exclude name="Squiz.ControlStructures.ControlSignature"/>
</rule>
<rule ref="PSR2.Methods.FunctionCallSignature.ContentAfterOpenBracket">
<exclude-pattern>app/launch/*</exclude-pattern>
</rule>
<rule ref="PSR2.Methods.FunctionCallSignature.MultipleArguments">
<exclude-pattern>app/launch/*</exclude-pattern>
</rule>
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
<exclude-pattern>app/database/*</exclude-pattern>
</rule>
<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
<exclude-pattern>app/database/*</exclude-pattern>
</rule>
<rule ref="PEAR.Commenting.InlineComment"/>
<!-- <exclude name="PEAR.Commenting.FunctionComment.ExtraParamComment" />
<exclude name="PEAR.Commenting.FunctionComment.MissingReturn" />
<exclude name="PEAR.Commenting.FunctionComment.MissingParamName" />
<exclude name="PEAR.Commenting.FunctionComment.MissingParamTag" />
<exclude name="PEAR.Commenting.FunctionComment.ParameterCommentsNotAligned" />
<exclude name="PEAR.Commenting.FunctionComment.ParameterNamesNotAligned" />
<exclude name="PEAR.Commenting.FunctionComment.ParamNameNoMatch" />
<exclude name="PEAR.Commenting.FunctionComment.SpacingBeforeParams" />
-->
<rule ref="PEAR.Commenting.FunctionComment">
<exclude-pattern>app/controllers/*</exclude-pattern>
<exclude-pattern>app/Najem/Facades/*</exclude-pattern>
<exclude name="PEAR.Commenting.FunctionComment.SpacingBeforeTags" />
<exclude name="PEAR.Commenting.FunctionComment.SpacingAfterParams" />
<exclude name="PEAR.Commenting.FunctionComment.MissingParamComment" />
</rule>
<rule ref="Squiz.ControlStructures.InlineIfDeclaration">
</rule>
<rule ref="Internal.NoCodeFound">
<exclude-pattern>*/views/*</exclude-pattern>
</rule>
</ruleset>