-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpinsights.php
40 lines (38 loc) · 1.16 KB
/
phpinsights.php
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
<?php
declare(strict_types=1);
return [
'preset' => 'laravel',
'exclude' => [
],
'add' => [
// ForbiddenPrivateMethods::class => [
// 'title' => 'The usage of private methods is not idiomatic in Laravel.',
// ],
],
'remove' => [
AlphabeticallySortedUsesSniff::class,
DeclareStrictTypesSniff::class,
DisallowMixedTypeHintSniff::class,
ForbiddenDefineFunctions::class,
ForbiddenNormalClasses::class,
ForbiddenTraits::class,
ParameterTypeHintSniff::class,
PropertyTypeHintSniff::class,
ReturnTypeHintSniff::class,
UselessFunctionDocCommentSniff::class,
// Pint will remove this, so don't enforce it
SlevomatCodingStandard\Sniffs\TypeHints\NullableTypeForNullDefaultValueSniff::class,
],
'config' => [
\PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LineLengthSniff::class => [
'lineLimit' => 120,
'absoluteLineLimit' => 160,
],
],
'requirements' => [
'min-quality' => 59,
'min-complexity' => 60,
'min-architecture' => 58,
'min-style' => 86,
],
];