diff --git a/config/rector.php b/config/rector.php index 978e0064..4141a011 100644 --- a/config/rector.php +++ b/config/rector.php @@ -3,6 +3,10 @@ declare(strict_types=1); use Rector\Config\RectorConfig; +use Rector\PHPUnit\Set\PHPUnitSetList; +use Rector\Set\ValueObject\LevelSetList; +use Rector\Set\ValueObject\SetList; +use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector; return RectorConfig::configure() ->withPaths( @@ -11,9 +15,27 @@ __DIR__ . '/../tests', ] ) - ->withPhpSets() - ->withRules( - [ - // AddVoidReturnTypeWhereNoReturnRector::class, - ] - ); + ->withSets([ + // Rector sets + + LevelSetList::UP_TO_PHP_73, + + // SetList::CODE_QUALITY, + // SetList::CODING_STYLE, + // SetList::DEAD_CODE, + // SetList::EARLY_RETURN, + // SetList::INSTANCEOF, + // SetList::NAMING, + // SetList::PRIVATIZATION, + SetList::STRICT_BOOLEANS, + SetList::TYPE_DECLARATION, + + // PHPUnit sets + + PHPUnitSetList::PHPUNIT_80, + // PHPUnitSetList::PHPUNIT_CODE_QUALITY, + ]) + ->withRules([ + AddVoidReturnTypeWhereNoReturnRector::class, + ]) + ->withImportNames(true, true, false);