-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.phpcs.xml
50 lines (43 loc) · 1.85 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
<?xml version="1.0"?>
<ruleset name="PHP_CodeSniffer">
<description>The coding standard for our project.</description>
<rule ref="PSR12"/>
<!-- <rule ref="Squiz"/> -->
<file>app</file>
<file>bootstrap</file>
<file>database</file>
<file>resources</file>
<file>routes</file>
<exclude-pattern>bootstrap/cache/*</exclude-pattern>
<exclude-pattern>bootstrap/autoload.php</exclude-pattern>
<exclude-pattern>*/migrations/*</exclude-pattern>
<exclude-pattern>*/seeds/*</exclude-pattern>
<exclude-pattern>*.blade.php</exclude-pattern>
<exclude-pattern>*.js</exclude-pattern>
<exclude-pattern>*.css</exclude-pattern>
<!-- Show progression -->
<arg value="p"/>
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array" value="eval=>NULL,dd=>NULL,die=>NULL,var_dump=>NULL,sizeof=>count,delete=>unset,print=>echo,create_function=>NULL"/>
</properties>
</rule>
<rule ref="Generic.WhiteSpace.LanguageConstructSpacing.IncorrectSingle"/>
<rule ref="Generic.Formatting.SpaceAfterCast.NoSpace"/>
<rule ref="Generic.Arrays.ArrayIndent.KeyIncorrect"/>
<rule ref="Squiz.WhiteSpace.OperatorSpacing"/>
<rule ref="Squiz.Arrays.ArrayBracketSpacing.SpaceAfterBracket"/>
<rule ref="Squiz.Arrays.ArrayDeclaration.SingleLineNotAllowed"/>
<rule ref="Squiz.Commenting.BlockComment.SingleLine"/>
<rule ref="Squiz.WhiteSpace.SemicolonSpacing.Incorrect"/>
<rule ref="PSR2.Classes.PropertyDeclaration.Underscore">
<type>error</type>
</rule>
<rule ref="PSR12">
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/>
<exclude name="PSR2.Methods.MethodDeclaration.Underscore"/>
</rule>
<rule ref="PSR12.Properties.ConstantVisibility.NotFound">
<type>error</type>
</rule>
</ruleset>