generated from spatie/package-skeleton-php
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpinsights.php
More file actions
38 lines (36 loc) · 1.32 KB
/
phpinsights.php
File metadata and controls
38 lines (36 loc) · 1.32 KB
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
<?php
declare(strict_types=1);
return [
'preset' => 'laravel',
'ide' => 'phpstorm',
'exclude' => [
'src/Sport.php',
// 'src/ReturnObjects/Fixture.php',
// 'path/to/directory-or-file'
],
'add' => [
// ExampleMetric::class => [
// ExampleInsight::class,
// ]
],
'remove' => [
// ExampleInsight::class,
\SlevomatCodingStandard\Sniffs\TypeHints\DisallowMixedTypeHintSniff::class,
\NunoMaduro\PhpInsights\Domain\Sniffs\ForbiddenSetterSniff::class,
\SlevomatCodingStandard\Sniffs\Classes\ForbiddenPublicPropertySniff::class,
\SlevomatCodingStandard\Sniffs\Commenting\DocCommentSpacingSniff::class, // Conflicts with Pint
\NunoMaduro\PhpInsights\Domain\Insights\ForbiddenTraits::class,
\NunoMaduro\PhpInsights\Domain\Insights\ForbiddenDefineFunctions::class,
\SlevomatCodingStandard\Sniffs\ControlStructures\DisallowEmptySniff::class,
],
'config' => [
\NunoMaduro\PhpInsights\Domain\Insights\CyclomaticComplexityIsHigh::class => [
'maxComplexity' => 8,
],
\PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LineLengthSniff::class => [
'lineLimit' => 120,
'absoluteLineLimit' => 120,
'ignoreComments' => false,
],
],
];