diff --git a/bootstrap.php b/bootstrap.php index db3cbc6..8d44bea 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -1,17 +1,23 @@ 'default', + + /* + |-------------------------------------------------------------------------- + | Configuration + |-------------------------------------------------------------------------- + | + | Here you may adjust all the various `Insights` that will be used by PHP + | Insights. You can either add, remove or configure `Insights`. Keep in + | mind, that all added `Insights` must belong to a specific `Metric`. + | + */ + + 'exclude' => [ + ], + + 'add' => [ + \NunoMaduro\PhpInsights\Domain\Metrics\Code\Comments::class => [ + \PhpCsFixer\Fixer\Phpdoc\PhpdocSummaryFixer::class, + ], + ], + + 'remove' => [ + ], + + 'config' => [ + LineLengthSniff::class => [ + 'lineLimit' => 120, + 'absoluteLineLimit' => 120, + 'ignoreComments' => true, + ], + ], + + /* + |-------------------------------------------------------------------------- + | Requirements + |-------------------------------------------------------------------------- + | + | Here you may define a level you want to reach per `Insights` category. + | When a score is lower than the minimum level defined, then an error + | code will be returned. This is optional and individually defined. + | + */ + + 'requirements' => [ + 'min-quality' => 96.0, + 'min-architecture' => 96.0, + 'min-style' => 96.0, + ], +];