1 | <?php |
||
2 | /** @noinspection PhpUndefinedNamespaceInspection */ |
||
3 | /** @noinspection PhpUndefinedClassInspection */ |
||
4 | declare(strict_types = 1); |
||
5 | return [ |
||
6 | /* |
||
7 | |-------------------------------------------------------------------------- |
||
8 | | Default Preset |
||
9 | |-------------------------------------------------------------------------- |
||
10 | | |
||
11 | | This option controls the default preset that will be used by PHP Insights |
||
12 | | to make your code reliable, simple, and clean. However, you can always |
||
13 | | adjust the `Metrics` and `Insights` below in this configuration file. |
||
14 | | |
||
15 | | Supported: "default", "laravel", "symfony" |
||
16 | | |
||
17 | */ |
||
18 | 'preset' => 'symfony', |
||
19 | /* |
||
20 | |-------------------------------------------------------------------------- |
||
21 | | Configuration |
||
22 | |-------------------------------------------------------------------------- |
||
23 | | |
||
24 | | Here you may adjust all the various `Insights` that will be used by PHP |
||
25 | | Insights. You can either add, remove or configure `Insights`. Keep in |
||
26 | | mind, that all added `Insights` must belong to a specific `Metric`. |
||
27 | | |
||
28 | */ |
||
29 | 'exclude' => [ |
||
30 | 'bin', |
||
31 | 'build', |
||
32 | 'config', |
||
33 | 'doc', |
||
34 | 'docker', |
||
35 | 'public', |
||
36 | 'secrets', |
||
37 | 'src/Migrations', |
||
38 | 'templates', |
||
39 | 'tests', |
||
40 | 'translations', |
||
41 | 'var', |
||
42 | 'vendor', |
||
43 | 'vendor-bin', |
||
44 | ], |
||
45 | 'add' => [ |
||
46 | // ExampleMetric::class => [ |
||
47 | // ExampleInsight::class, |
||
48 | // ] |
||
49 | ], |
||
50 | 'remove' => [ |
||
51 | // ExampleInsight::class, |
||
52 | NunoMaduro\PhpInsights\Domain\Insights\ForbiddenNormalClasses::class, |
||
1 ignored issue
–
show
|
|||
53 | NunoMaduro\PhpInsights\Domain\Insights\ForbiddenTraits::class, |
||
1 ignored issue
–
show
The type
NunoMaduro\PhpInsights\D...nsights\ForbiddenTraits was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
54 | ObjectCalisthenics\Sniffs\Classes\ForbiddenPublicPropertySniff::class, |
||
1 ignored issue
–
show
The type
ObjectCalisthenics\Sniff...ddenPublicPropertySniff was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
55 | ObjectCalisthenics\Sniffs\NamingConventions\NoSetterSniff::class, |
||
1 ignored issue
–
show
The type
ObjectCalisthenics\Sniff...nventions\NoSetterSniff was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
56 | SlevomatCodingStandard\Sniffs\Classes\SuperfluousInterfaceNamingSniff::class, |
||
1 ignored issue
–
show
The type
SlevomatCodingStandard\S...ousInterfaceNamingSniff was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
57 | SlevomatCodingStandard\Sniffs\Classes\SuperfluousTraitNamingSniff::class, |
||
1 ignored issue
–
show
The type
SlevomatCodingStandard\S...rfluousTraitNamingSniff was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
58 | SlevomatCodingStandard\Sniffs\Commenting\DocCommentSpacingSniff::class, |
||
1 ignored issue
–
show
The type
SlevomatCodingStandard\S...\DocCommentSpacingSniff was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
59 | SlevomatCodingStandard\Sniffs\TypeHints\DisallowMixedTypeHintSniff::class, |
||
1 ignored issue
–
show
The type
SlevomatCodingStandard\S...allowMixedTypeHintSniff was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
60 | SlevomatCodingStandard\Sniffs\TypeHints\DisallowArrayTypeHintSyntaxSniff::class, |
||
1 ignored issue
–
show
The type
SlevomatCodingStandard\S...rrayTypeHintSyntaxSniff was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
61 | ], |
||
62 | 'config' => [ |
||
63 | // ExampleInsight::class => [ |
||
64 | // 'key' => 'value', |
||
65 | // ], |
||
66 | ObjectCalisthenics\Sniffs\Files\ClassTraitAndInterfaceLengthSniff::class => [ |
||
1 ignored issue
–
show
The type
ObjectCalisthenics\Sniff...AndInterfaceLengthSniff was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
67 | 'maxLength' => 600, |
||
68 | ], |
||
69 | ObjectCalisthenics\Sniffs\Files\FunctionLengthSniff::class => [ |
||
1 ignored issue
–
show
The type
ObjectCalisthenics\Sniff...les\FunctionLengthSniff was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
70 | 'maxLength' => 45, |
||
71 | ], |
||
72 | ObjectCalisthenics\Sniffs\NamingConventions\ElementNameMinimalLengthSniff::class => [ |
||
1 ignored issue
–
show
The type
ObjectCalisthenics\Sniff...tNameMinimalLengthSniff was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
73 | 'allowedShortNames' => ['i', 'id', 'to', 'up', 'io', 'em'], |
||
74 | ], |
||
75 | ObjectCalisthenics\Sniffs\Metrics\MaxNestingLevelSniff::class => [ |
||
1 ignored issue
–
show
The type
ObjectCalisthenics\Sniff...cs\MaxNestingLevelSniff was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
76 | 'maxNestingLevel' => 3, |
||
77 | ], |
||
78 | ObjectCalisthenics\Sniffs\Metrics\MethodPerClassLimitSniff::class => [ |
||
1 ignored issue
–
show
The type
ObjectCalisthenics\Sniff...ethodPerClassLimitSniff was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
79 | 'maxCount' => 25, |
||
80 | ], |
||
81 | ObjectCalisthenics\Sniffs\Metrics\PropertyPerClassLimitSniff::class => [ |
||
1 ignored issue
–
show
The type
ObjectCalisthenics\Sniff...pertyPerClassLimitSniff was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
82 | 'maxCount' => 20, |
||
83 | ], |
||
84 | PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LineLengthSniff::class => [ |
||
1 ignored issue
–
show
The type
PHP_CodeSniffer\Standard...s\Files\LineLengthSniff was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
85 | 'lineLimit' => 120, |
||
86 | 'absoluteLineLimit' => 140, |
||
87 | 'ignoreComments' => true, |
||
88 | ], |
||
89 | PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\SpaceAfterCastSniff::class => [ |
||
1 ignored issue
–
show
The type
PHP_CodeSniffer\Standard...ing\SpaceAfterCastSniff was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
90 | 'spacing' => 0, |
||
91 | ], |
||
92 | PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\SpaceAfterNotSniff::class => [ |
||
1 ignored issue
–
show
The type
PHP_CodeSniffer\Standard...ting\SpaceAfterNotSniff was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
93 | 'spacing' => 0, |
||
94 | ], |
||
95 | SlevomatCodingStandard\Sniffs\Namespaces\UnusedUsesSniff::class => [ |
||
1 ignored issue
–
show
The type
SlevomatCodingStandard\S...espaces\UnusedUsesSniff was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
96 | 'searchAnnotations' => true, |
||
97 | ], |
||
98 | SlevomatCodingStandard\Sniffs\TypeHints\DeclareStrictTypesSniff::class => [ |
||
1 ignored issue
–
show
The type
SlevomatCodingStandard\S...DeclareStrictTypesSniff was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
99 | 'newlinesCountAfterDeclare' => 1, |
||
100 | 'newlinesCountBetweenOpenTagAndDeclare' => 1, |
||
101 | 'spacesCountAroundEqualsSign' => 1, |
||
102 | ], |
||
103 | ], |
||
104 | ]; |
||
105 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths