Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
setters aren't always bad
Browse files Browse the repository at this point in the history
disable ForbiddenSetterSniff
  • Loading branch information
Gummibeer committed Mar 4, 2020
1 parent ec0f6fa commit 668a555
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configs/phpinsights.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -99,6 +100,7 @@
PropertyTypeHintSniff::class,
UselessFunctionDocCommentSniff::class,
InlineDocCommentDeclarationSniff::class,
ForbiddenSetterSniff::class,

// COMPLEXITY
CyclomaticComplexityIsHigh::class,
Expand Down

0 comments on commit 668a555

Please sign in to comment.