forked from azpanel/azpanel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpinsights.php
61 lines (59 loc) · 2.45 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
declare(strict_types=1);
return [
'preset' => 'default',
'exclude' => [
'runtime',
'config',
'route',
'app/ExceptionHandle.php',
'app/BaseController.php',
'app/AppService.php',
'app/middleware.php',
'app/provider.php',
'app/Request.php',
'app/event.php',
'public/index.php',
],
'add' => [
// ExampleMetric::class => [
// ExampleInsight::class,
// ]
],
'remove' => [
NunoMaduro\PhpInsights\Domain\Insights\ForbiddenNormalClasses::class,
NunoMaduro\PhpInsights\Domain\Sniffs\ForbiddenSetterSniff::class,
NunoMaduro\PhpInsights\Domain\Insights\ForbiddenGlobals::class,
NunoMaduro\PhpInsights\Domain\Insights\CyclomaticComplexityIsHigh::class,
PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LineLengthSniff::class,
PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\SpaceAfterNotSniff::class,
PHP_CodeSniffer\Standards\Generic\Sniffs\Strings\UnnecessaryStringConcatSniff::class,
PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\GlobalKeywordSniff::class,
PhpCsFixer\Fixer\StringNotation\SingleQuoteFixer::class,
PhpCsFixer\Fixer\FunctionNotation\VoidReturnFixer::class,
SlevomatCodingStandard\Sniffs\Classes\ForbiddenPublicPropertySniff::class,
SlevomatCodingStandard\Sniffs\Functions\FunctionLengthSniff::class,
SlevomatCodingStandard\Sniffs\Functions\UnusedParameterSniff::class,
SlevomatCodingStandard\Sniffs\TypeHints\DeclareStrictTypesSniff::class,
SlevomatCodingStandard\Sniffs\TypeHints\ParameterTypeHintSniff::class,
SlevomatCodingStandard\Sniffs\TypeHints\PropertyTypeHintSniff::class,
SlevomatCodingStandard\Sniffs\TypeHints\ReturnTypeHintSniff::class,
SlevomatCodingStandard\Sniffs\Namespaces\UseFromSameNamespaceSniff::class,
SlevomatCodingStandard\Sniffs\Operators\RequireOnlyStandaloneIncrementAndDecrementOperatorsSniff::class,
],
'config' => [
// ExampleInsight::class => [
// 'key' => 'value',
// ],
SlevomatCodingStandard\Sniffs\Namespaces\UnusedUsesSniff::class => [
'exclude' => [
'database/migrations',
],
],
PHP_CodeSniffer\Standards\PSR1\Sniffs\Classes\ClassDeclarationSniff::class => [
'exclude' => [
'database/migrations',
],
],
],
];