From 668a55531acb5bf0ce71e14e8ba737b2ebf49aaf Mon Sep 17 00:00:00 2001 From: Tom Witkowski Date: Wed, 4 Mar 2020 15:57:12 +0100 Subject: [PATCH] setters aren't always bad disable ForbiddenSetterSniff --- configs/phpinsights.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/phpinsights.php b/configs/phpinsights.php index 9adf2a7..fb3113c 100644 --- a/configs/phpinsights.php +++ b/configs/phpinsights.php @@ -7,6 +7,7 @@ use NunoMaduro\PhpInsights\Domain\Insights\ForbiddenDefineFunctions; use NunoMaduro\PhpInsights\Domain\Insights\ForbiddenNormalClasses; use NunoMaduro\PhpInsights\Domain\Insights\ForbiddenTraits; +use NunoMaduro\PhpInsights\Domain\Sniffs\ForbiddenSetterSniff; use ObjectCalisthenics\Sniffs\Classes\ForbiddenPublicPropertySniff; use ObjectCalisthenics\Sniffs\Files\ClassTraitAndInterfaceLengthSniff; use ObjectCalisthenics\Sniffs\Files\FunctionLengthSniff; @@ -99,6 +100,7 @@ PropertyTypeHintSniff::class, UselessFunctionDocCommentSniff::class, InlineDocCommentDeclarationSniff::class, + ForbiddenSetterSniff::class, // COMPLEXITY CyclomaticComplexityIsHigh::class,