edyan /
neuralyzer
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | return [ |
||
| 6 | |||
| 7 | /* |
||
| 8 | |-------------------------------------------------------------------------- |
||
| 9 | | Default Preset |
||
| 10 | |-------------------------------------------------------------------------- |
||
| 11 | | |
||
| 12 | | This option controls the default preset that will be used by PHP Insights |
||
| 13 | | to make your code reliable, simple, and clean. However, you can always |
||
| 14 | | adjust the `Metrics` and `Insights` below in this configuration file. |
||
| 15 | | |
||
| 16 | | Supported: "default", "laravel", "symfony", "magento2", "drupal" |
||
| 17 | | |
||
| 18 | */ |
||
| 19 | |||
| 20 | 'preset' => 'symfony', |
||
| 21 | /* |
||
| 22 | |-------------------------------------------------------------------------- |
||
| 23 | | IDE |
||
| 24 | |-------------------------------------------------------------------------- |
||
| 25 | | |
||
| 26 | | This options allow to add hyperlinks in your terminal to quickly open |
||
| 27 | | files in your favorite IDE while browsing your PhpInsights report. |
||
| 28 | | |
||
| 29 | | Supported: "textmate", "macvim", "emacs", "sublime", "phpstorm", |
||
| 30 | | "atom", "vscode". |
||
| 31 | | |
||
| 32 | | If you have another IDE that is not in this list but which provide an |
||
| 33 | | url-handler, you could fill this config with a pattern like this: |
||
| 34 | | |
||
| 35 | | myide://open?url=file://%f&line=%l |
||
| 36 | | |
||
| 37 | */ |
||
| 38 | |||
| 39 | 'ide' => null, |
||
| 40 | /* |
||
| 41 | |-------------------------------------------------------------------------- |
||
| 42 | | Configuration |
||
| 43 | |-------------------------------------------------------------------------- |
||
| 44 | | |
||
| 45 | | Here you may adjust all the various `Insights` that will be used by PHP |
||
| 46 | | Insights. You can either add, remove or configure `Insights`. Keep in |
||
| 47 | | mind, that all added `Insights` must belong to a specific `Metric`. |
||
| 48 | | |
||
| 49 | */ |
||
| 50 | |||
| 51 | 'exclude' => [ |
||
| 52 | // 'path/to/directory-or-file' |
||
| 53 | ], |
||
| 54 | |||
| 55 | 'add' => [ |
||
| 56 | // ExampleMetric::class => [ |
||
| 57 | // ExampleInsight::class, |
||
| 58 | // ] |
||
| 59 | ], |
||
| 60 | |||
| 61 | // see https://phpinsights.com/insights/style.html |
||
| 62 | 'remove' => [ |
||
| 63 | \PhpCsFixer\Fixer\Whitespace\MethodChainingIndentationFixer::class, |
||
|
0 ignored issues
–
show
|
|||
| 64 | ], |
||
| 65 | |||
| 66 | 'config' => [ |
||
| 67 | \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LineLengthSniff::class => [ |
||
|
0 ignored issues
–
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 Loading history...
|
|||
| 68 | 'lineLimit' => 100, |
||
| 69 | 'absoluteLineLimit' => 120, |
||
| 70 | 'ignoreComments' => false, |
||
| 71 | ], |
||
| 72 | ], |
||
| 73 | |||
| 74 | /* |
||
| 75 | |-------------------------------------------------------------------------- |
||
| 76 | | Requirements |
||
| 77 | |-------------------------------------------------------------------------- |
||
| 78 | | |
||
| 79 | | Here you may define a level you want to reach per `Insights` category. |
||
| 80 | | When a score is lower than the minimum level defined, then an error |
||
| 81 | | code will be returned. This is optional and individually defined. |
||
| 82 | | |
||
| 83 | */ |
||
| 84 | |||
| 85 | 'requirements' => [ |
||
| 86 | // 'min-quality' => 0, |
||
| 87 | // 'min-complexity' => 0, |
||
| 88 | // 'min-architecture' => 0, |
||
| 89 | // 'min-style' => 0, |
||
| 90 | // 'disable-security-check' => false, |
||
| 91 | ], |
||
| 92 | |||
| 93 | ]; |
||
| 94 |
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