generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.phpcs.xml
63 lines (53 loc) · 2.46 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
<?xml version="1.0"?>
<ruleset name="PSR-12 Car and Classic" namespace="CarAndClassic\CS\Standard">
<description>This is basically just PSR-12 with some extra bits added on that PSR-12 didn't 'codify', or removed that don't work for us - https://www.php-fig.org/psr/psr-12/</description>
<config name="installed_paths" value="./../../../vendor/slevomat/coding-standard/"/>
<file>./src/</file>
<file>./tests/</file>
<arg name="colors"/>
<arg value="sp"/>
<ini name="memory_limit" value="256M"/>
<rule ref="PSR12">
</rule>
<!--
The Todo rule was being silenced and as such wasn't issuing notices
Lets reactivate it later
-->
<!-- <rule ref="Generic.Commenting.Todo"/>-->
<!-- <rule ref="Generic.Commenting.Todo.CommentFound">-->
<!-- <message>Please review this TODO comment: %s</message>-->
<!-- <severity>3</severity>-->
<!-- </rule>-->
<rule ref="Generic.Files.LineLength.MaxExceeded">
<message>Line contains %2$s chars, which is more than the limit of %1$s</message>
</rule>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="150"/>
<property name="absoluteLineLimit" value="330"/>
</properties>
<exclude name="Generic.Files.LineLength.TooLong"/>
</rule>
<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="SlevomatCodingStandard.Namespaces.UselessAlias" />
<rule ref="SlevomatCodingStandard.PHP.UselessSemicolon" />
<rule ref="SlevomatCodingStandard.PHP.TypeCast" />
<rule ref="SlevomatCodingStandard.Namespaces.DisallowGroupUse" />
<rule ref="SlevomatCodingStandard.Namespaces.MultipleUsesPerLine" />
<rule ref="SlevomatCodingStandard.Namespaces.UseDoesNotStartWithBackslash" />
<rule ref="SlevomatCodingStandard.Commenting.UselessInheritDocComment" />
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<properties>
<property name="spacesCountAroundEqualsSign" type="int" value="0"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat">
<properties>
<property name="withSpaces" value="no"/>
</properties>
</rule>
</ruleset>