Skip to content

Commit

Permalink
Decouple LongAndDependentComplexRectorRule to cognitive-complexity pa…
Browse files Browse the repository at this point in the history
…ckage (#5427)

* cs

* Decouple LongAndDependentComplexRectorRule to cognitive-complexity package
  • Loading branch information
TomasVotruba committed Jan 3, 2024
1 parent 09c077e commit f85e8c2
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 138 deletions.
4 changes: 0 additions & 4 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
includes:
- vendor/symplify/phpstan-rules/config/symplify-rules.neon

rules:
# @todo this rule is costly and designed for hand-on refactoring; enable only when needed
#- Rector\Utils\PHPStan\Rule\LongAndDependentComplexRectorRule

parameters:
level: 8

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
declare(strict_types=1);

use Rector\Config\RectorConfig;
use Rector\ValueObject\PhpVersionFeature;
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnUnionTypeRector;
use Rector\ValueObject\PhpVersionFeature;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->rule(ReturnUnionTypeRector::class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
declare(strict_types=1);

use Rector\Config\RectorConfig;
use Rector\ValueObject\PhpVersionFeature;
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnUnionTypeRector;
use Rector\ValueObject\PhpVersionFeature;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->rule(ReturnUnionTypeRector::class);
Expand Down
132 changes: 0 additions & 132 deletions utils/PHPStan/Rule/LongAndDependentComplexRectorRule.php

This file was deleted.

0 comments on commit f85e8c2

Please sign in to comment.