'symfony', /* |-------------------------------------------------------------------------- | IDE |-------------------------------------------------------------------------- | | This options allow to add hyperlinks in your terminal to quickly open | files in your favorite IDE while browsing your PhpInsights report. | | Supported: "textmate", "macvim", "emacs", "sublime", "phpstorm", | "atom", "vscode". | | If you have another IDE that is not in this list but which provide an | url-handler, you could fill this config with a pattern like this: | | myide://open?url=file://%f&line=%l | */ 'ide' => null, /* |-------------------------------------------------------------------------- | 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' => [ 'Kernel.php', ], 'remove' => [ DisallowYodaComparisonSniff::class, ForbiddenSetterSniff::class, ForbiddenNormalClasses::class, SuperfluousExceptionNamingSniff::class, SuperfluousTraitNamingSniff::class, SuperfluousAbstractClassNamingSniff::class, SuperfluousInterfaceNamingSniff::class, FunctionLengthSniff::class, SpaceAfterNotSniff::class, OrderedClassElementsFixer::class, LineLengthSniff::class, DocCommentSpacingSniff::class, ForbiddenTraits::class, UselessOverridingMethodSniff::class, // Parfois nécessaire notamment sur les Enum DisallowMixedTypeHintSniff::class, UnusedParameterSniff::class, ForbiddenPublicPropertySniff::class, InlineDocCommentDeclarationSniff::class, ReturnAssignmentFixer::class, ForbiddenDefineFunctions::class, // Todo A supprimer quand https://github.com/nunomaduro/phpinsights/issues/577 sera corrigé SideEffectsSniff::class, // TODO À supprimer quand les classes readonly seront prise en charge DisallowArrayTypeHintSyntaxSniff::class, PropertyTypeHintSniff::class, ParameterTypeHintSniff::class, ReturnTypeHintSniff::class, UpperCaseConstantNameSniff::class, ], 'config' => [ CyclomaticComplexityIsHigh::class => [ 'maxComplexity' => 100, ], ], /* |-------------------------------------------------------------------------- | 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' => 100, 'min-complexity' => 0, 'min-architecture' => 100, 'min-style' => 100, ], ];