-
-
Notifications
You must be signed in to change notification settings - Fork 596
/
phpcs.xml
executable file
·54 lines (44 loc) · 2.06 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
<?xml version="1.0"?>
<ruleset name="PHP_CodeSniffer">
<description>PHP_CodeSniffer configuration</description>
<rule ref="PSR12">
<exclude name="Squiz.Classes.ValidClassName" />
<exclude name="Generic.Files.LineLength" />
<exclude name="Squiz.Commenting.FunctionComment.IncorrectParamVarName" />
<exclude name="Squiz.Commenting.FunctionComment.InvalidReturn" />
</rule>
<arg name="bootstrap" value="vendor/zebra-north/phpcs-short-types/short-types.php"/>
<rule ref="Modernize" />
<rule ref="NormalizedArrays" />
<!-- exclude our migrations directory from the violation check-->
<exclude-pattern>*.blade.php</exclude-pattern>
<!-- ignore warnings and display ERRORS only -->
<arg value="np"/>
<rule ref="Universal.Namespaces.DisallowCurlyBraceSyntax">
<exclude name="Universal.Namespaces.DisallowCurlyBraceSyntax.Forbidden" />
</rule>
<rule ref="Squiz.Commenting.FunctionComment">
<exclude name="Squiz.Commenting.FunctionComment.MissingParamTag" />
<exclude name="Squiz.Commenting.FunctionComment.MissingParamComment" />
<exclude name="Squiz.Commenting.FunctionComment.ParamCommentFullStop" />
<exclude name="Squiz.Commenting.FunctionComment.EmptyThrows" />
<exclude name="Squiz.Commenting.VariableComment.MissingReturn" />
<exclude name="Squiz.Commenting.FunctionComment.ParamCommentNotCapital" />
</rule>
<rule ref="Squiz.Commenting.FunctionCommentThrowTag">
<exclude name="Squiz.Commenting.FunctionCommentThrowTag.Missing" />
</rule>
<rule ref="Squiz.Commenting.ClassComment" />
<rule ref="Squiz.Commenting.VariableComment" >
<!-- Put back in at some point -->
<exclude name="Squiz.Commenting.VariableComment.Missing" />
</rule>
<!-- Keeping this in here for future use
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="180"/>
<property name="absoluteLineLimit" value="210"/>
</properties>
</rule>
-->
</ruleset>