-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
45 lines (36 loc) · 1.38 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
<?xml version="1.0"?>
<!-- @see https://pear.php.net/manual/en/package.php.php-codesniffer.annotated-ruleset.php -->
<ruleset name= "Laravel PHPCS Rules">
<description>PHPCS ruleset for Task Manager</description>
<arg name="basepath" value="."/>
<arg name="colors"/>
<arg name="parallel" value="100"/>
<arg value="np"/>
<file>app</file>
<file>public</file>
<file>resources</file>
<file>routes</file>
<file>tests</file>
<file>database</file>
<!-- Show progress of the run -->
<arg value= "p"/>
<!-- Show sniff codes in all reports -->
<arg value= "s"/>
<!-- Our base rule: set to PSR12 -->
<rule ref="PSR12">
<exclude name="PSR12.Operators.OperatorSpacing.NoSpaceBefore"/>
<exclude name="PSR12.Operators.OperatorSpacing.NoSpaceAfter"/>
<exclude name="PSR12.Traits.UseDeclaration.MultipleImport"/>
</rule>
<rule ref= "Generic.Files.LineLength">
<properties>
<!--<property name="lineLimit" value="80"/>-->
<property name="absoluteLineLimit" value="120"/>
</properties>
</rule>
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<exclude-pattern>tests/</exclude-pattern>
</rule>
<exclude-pattern>app/Http/Controllers/Auth/*</exclude-pattern>
<exclude-pattern>app/Http/Requests/ProfileUpdateRequest.php</exclude-pattern>
</ruleset>