Skip to content

Commit

Permalink
Fix rector config
Browse files Browse the repository at this point in the history
  • Loading branch information
SerafimArts committed Mar 2, 2024
1 parent 49d0e43 commit b14da98
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,14 @@

declare(strict_types=1);

use Rector\CodeQuality\Rector\ClassMethod\LocallyCalledStaticMethodToNonStaticRector;
use Rector\CodeQuality\Rector\Identical\FlipTypeControlToUseExclusiveTypeRector;
use Rector\CodingStyle\Rector\Assign\SplitDoubleAssignRector;
use Rector\CodingStyle\Rector\Catch_\CatchExceptionNameMatchingTypeRector;
use Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector;
use Rector\Config\RectorConfig;
use Rector\EarlyReturn\Rector\Return_\ReturnBinaryOrToEarlyReturnRector;
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;
use Rector\TypeDeclaration\Rector\FunctionLike\AddReturnTypeDeclarationFromYieldsRector;

return static function (RectorConfig $config): void {
$config->paths([__DIR__ . '/src']);
$config->cacheDirectory(__DIR__ . '/vendor/.cache.rector');

$config->sets([
LevelSetList::UP_TO_PHP_81,
SetList::TYPE_DECLARATION,
SetList::CODE_QUALITY,
SetList::CODING_STYLE,
SetList::EARLY_RETURN,
]);

$config->skip([
ClassPropertyAssignToConstructorPromotionRector::class,
ReadOnlyPropertyRector::class,
CatchExceptionNameMatchingTypeRector::class,
SplitDoubleAssignRector::class,
FlipTypeControlToUseExclusiveTypeRector::class,
ReturnBinaryOrToEarlyReturnRector::class,
LocallyCalledStaticMethodToNonStaticRector::class,
EncapsedStringsToSprintfRector::class,
AddReturnTypeDeclarationFromYieldsRector::class,
]);
};

0 comments on commit b14da98

Please sign in to comment.