Passed
Push — master ( 3b2450...e56cfd )
by Tom
01:01
created

phpinsights.php (1 issue)

Severity
1
<?php
2
3
use NunoMaduro\PhpInsights\Domain\Insights\CyclomaticComplexityIsHigh;
4
use NunoMaduro\PhpInsights\Domain\Insights\ForbiddenNormalClasses;
5
use ObjectCalisthenics\Sniffs\Files\ClassTraitAndInterfaceLengthSniff;
6
use ObjectCalisthenics\Sniffs\Files\FunctionLengthSniff;
7
use ObjectCalisthenics\Sniffs\Metrics\MethodPerClassLimitSniff;
8
use PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LineLengthSniff;
9
use SlevomatCodingStandard\Sniffs\Classes\SuperfluousExceptionNamingSniff;
10
use SlevomatCodingStandard\Sniffs\Commenting\DocCommentSpacingSniff;
11
use SlevomatCodingStandard\Sniffs\ControlStructures\DisallowEmptySniff;
12
use SlevomatCodingStandard\Sniffs\Namespaces\AlphabeticallySortedUsesSniff;
13
use SlevomatCodingStandard\Sniffs\TypeHints\DeclareStrictTypesSniff;
14
use SlevomatCodingStandard\Sniffs\TypeHints\DisallowArrayTypeHintSyntaxSniff;
15
use SlevomatCodingStandard\Sniffs\TypeHints\DisallowMixedTypeHintSniff;
16
17
return [
18
19
    /*
20
    |--------------------------------------------------------------------------
21
    | Default Preset
22
    |--------------------------------------------------------------------------
23
    |
24
    | This option controls the default preset that will be used by PHP Insights
25
    | to make your code reliable, simple, and clean. However, you can always
26
    | adjust the `Metrics` and `Insights` below in this configuration file.
27
    |
28
    | Supported: "default", "laravel", "symfony", "magento2", "drupal"
29
    |
30
    */
31
32
    'preset' => 'laravel',
33
34
    /*
35
    |--------------------------------------------------------------------------
36
    | Configuration
37
    |--------------------------------------------------------------------------
38
    |
39
    | Here you may adjust all the various `Insights` that will be used by PHP
40
    | Insights. You can either add, remove or configure `Insights`. Keep in
41
    | mind, that all added `Insights` must belong to a specific `Metric`.
42
    |
43
    */
44
45
    'exclude' => [
46
        'tests/'
0 ignored issues
show
Multi-line arrays must have a trailing comma after the last element.
Loading history...
47
    ],
48
49
    'add' => [
50
        //  ExampleMetric::class => [
51
        //      ExampleInsight::class,
52
        //  ]
53
    ],
54
55
    'remove' => [
56
        DocCommentSpacingSniff::class,
57
        AlphabeticallySortedUsesSniff::class,
58
        LineLengthSniff::class,
59
        FunctionLengthSniff::class,
60
        SuperfluousExceptionNamingSniff::class,
61
        MethodPerClassLimitSniff::class,
62
        ClassTraitAndInterfaceLengthSniff::class,
63
        ForbiddenNormalClasses::class,
64
        CyclomaticComplexityIsHigh::class,
65
        DeclareStrictTypesSniff::class,
66
        DisallowArrayTypeHintSyntaxSniff::class,
67
        DisallowEmptySniff::class,
68
        DisallowMixedTypeHintSniff::class,
69
    ],
70
71
    'config' => [
72
        //  ExampleInsight::class => [
73
        //      'key' => 'value',
74
        //  ],
75
    ],
76
77
];
78