indy2kro /
php-epub
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | use NunoMaduro\PhpInsights\Domain\Insights\CyclomaticComplexityIsHigh; |
||
|
0 ignored issues
–
show
|
|||
| 6 | use NunoMaduro\PhpInsights\Domain\Insights\ForbiddenNormalClasses; |
||
|
0 ignored issues
–
show
The type
NunoMaduro\PhpInsights\D...\ForbiddenNormalClasses 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 Loading history...
|
|||
| 7 | use NunoMaduro\PhpInsights\Domain\Insights\ForbiddenTraits; |
||
|
0 ignored issues
–
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 Loading history...
|
|||
| 8 | use NunoMaduro\PhpInsights\Domain\Sniffs\ForbiddenSetterSniff; |
||
|
0 ignored issues
–
show
The type
NunoMaduro\PhpInsights\D...fs\ForbiddenSetterSniff 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 Loading history...
|
|||
| 9 | use PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting\TodoSniff; |
||
| 10 | use PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LineLengthSniff; |
||
| 11 | use PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\NoSilencedErrorsSniff; |
||
| 12 | use SlevomatCodingStandard\Sniffs\Classes\ForbiddenPublicPropertySniff; |
||
|
0 ignored issues
–
show
The type
SlevomatCodingStandard\S...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 Loading history...
|
|||
| 13 | use SlevomatCodingStandard\Sniffs\Classes\SuperfluousExceptionNamingSniff; |
||
|
0 ignored issues
–
show
The type
SlevomatCodingStandard\S...ousExceptionNamingSniff 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 Loading history...
|
|||
| 14 | use SlevomatCodingStandard\Sniffs\Classes\SuperfluousInterfaceNamingSniff; |
||
|
0 ignored issues
–
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 Loading history...
|
|||
| 15 | use SlevomatCodingStandard\Sniffs\Functions\FunctionLengthSniff; |
||
|
0 ignored issues
–
show
The type
SlevomatCodingStandard\S...ons\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 Loading history...
|
|||
| 16 | use SlevomatCodingStandard\Sniffs\Functions\UnusedParameterSniff; |
||
|
0 ignored issues
–
show
The type
SlevomatCodingStandard\S...ns\UnusedParameterSniff 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 Loading history...
|
|||
| 17 | use SlevomatCodingStandard\Sniffs\TypeHints\DisallowMixedTypeHintSniff; |
||
|
0 ignored issues
–
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 Loading history...
|
|||
| 18 | |||
| 19 | return [ |
||
| 20 | |||
| 21 | /* |
||
| 22 | |-------------------------------------------------------------------------- |
||
| 23 | | Default Preset |
||
| 24 | |-------------------------------------------------------------------------- |
||
| 25 | | |
||
| 26 | | This option controls the default preset that will be used by PHP Insights |
||
| 27 | | to make your code reliable, simple, and clean. However, you can always |
||
| 28 | | adjust the `Metrics` and `Insights` below in this configuration file. |
||
| 29 | | |
||
| 30 | | Supported: "default", "laravel", "symfony", "magento2", "drupal", "wordpress" |
||
| 31 | | |
||
| 32 | */ |
||
| 33 | |||
| 34 | 'preset' => 'default', |
||
| 35 | |||
| 36 | /* |
||
| 37 | |-------------------------------------------------------------------------- |
||
| 38 | | IDE |
||
| 39 | |-------------------------------------------------------------------------- |
||
| 40 | | |
||
| 41 | | This options allow to add hyperlinks in your terminal to quickly open |
||
| 42 | | files in your favorite IDE while browsing your PhpInsights report. |
||
| 43 | | |
||
| 44 | | Supported: "textmate", "macvim", "emacs", "sublime", "phpstorm", |
||
| 45 | | "atom", "vscode". |
||
| 46 | | |
||
| 47 | | If you have another IDE that is not in this list but which provide an |
||
| 48 | | url-handler, you could fill this config with a pattern like this: |
||
| 49 | | |
||
| 50 | | myide://open?url=file://%f&line=%l |
||
| 51 | | |
||
| 52 | */ |
||
| 53 | |||
| 54 | 'ide' => null, |
||
| 55 | |||
| 56 | /* |
||
| 57 | |-------------------------------------------------------------------------- |
||
| 58 | | Configuration |
||
| 59 | |-------------------------------------------------------------------------- |
||
| 60 | | |
||
| 61 | | Here you may adjust all the various `Insights` that will be used by PHP |
||
| 62 | | Insights. You can either add, remove or configure `Insights`. Keep in |
||
| 63 | | mind, that all added `Insights` must belong to a specific `Metric`. |
||
| 64 | | |
||
| 65 | */ |
||
| 66 | |||
| 67 | 'exclude' => [ |
||
| 68 | ], |
||
| 69 | |||
| 70 | 'add' => [ |
||
| 71 | ], |
||
| 72 | |||
| 73 | 'remove' => [ |
||
| 74 | ForbiddenSetterSniff::class, |
||
| 75 | DisallowMixedTypeHintSniff::class, |
||
| 76 | LineLengthSniff::class, |
||
| 77 | FunctionLengthSniff::class, |
||
| 78 | SuperfluousExceptionNamingSniff::class, |
||
| 79 | SuperfluousInterfaceNamingSniff::class, |
||
| 80 | ForbiddenNormalClasses::class, |
||
| 81 | CyclomaticComplexityIsHigh::class, |
||
| 82 | UnusedParameterSniff::class, |
||
| 83 | TodoSniff::class, |
||
| 84 | ForbiddenPublicPropertySniff::class, |
||
| 85 | NoSilencedErrorsSniff::class, |
||
| 86 | ForbiddenTraits::class, |
||
| 87 | ], |
||
| 88 | |||
| 89 | 'config' => [ |
||
| 90 | // ExampleInsight::class => [ |
||
| 91 | // 'key' => 'value', |
||
| 92 | // ], |
||
| 93 | ], |
||
| 94 | |||
| 95 | /* |
||
| 96 | |-------------------------------------------------------------------------- |
||
| 97 | | Requirements |
||
| 98 | |-------------------------------------------------------------------------- |
||
| 99 | | |
||
| 100 | | Here you may define a level you want to reach per `Insights` category. |
||
| 101 | | When a score is lower than the minimum level defined, then an error |
||
| 102 | | code will be returned. This is optional and individually defined. |
||
| 103 | | |
||
| 104 | */ |
||
| 105 | |||
| 106 | 'requirements' => [ |
||
| 107 | 'min-quality' => 100, |
||
| 108 | 'min-complexity' => 0, |
||
| 109 | 'min-architecture' => 100, |
||
| 110 | 'min-style' => 100, |
||
| 111 | ], |
||
| 112 | |||
| 113 | /* |
||
| 114 | |-------------------------------------------------------------------------- |
||
| 115 | | Threads |
||
| 116 | |-------------------------------------------------------------------------- |
||
| 117 | | |
||
| 118 | | Here you may adjust how many threads (core) PHPInsights can use to perform |
||
| 119 | | the analysis. This is optional, don't provide it and the tool will guess |
||
| 120 | | the max core number available. It accepts null value or integer > 0. |
||
| 121 | | |
||
| 122 | */ |
||
| 123 | |||
| 124 | 'threads' => null, |
||
| 125 | |||
| 126 | /* |
||
| 127 | |-------------------------------------------------------------------------- |
||
| 128 | | Timeout |
||
| 129 | |-------------------------------------------------------------------------- |
||
| 130 | | Here you may adjust the timeout (in seconds) for PHPInsights to run before |
||
| 131 | | a ProcessTimedOutException is thrown. |
||
| 132 | | This accepts an int > 0. Default is 60 seconds, which is the default value |
||
| 133 | | of Symfony's setTimeout function. |
||
| 134 | | |
||
| 135 | */ |
||
| 136 | |||
| 137 | 'timeout' => 60, |
||
| 138 | ]; |
||
| 139 |
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