From 1a9821cc086013c88ced072c3815acd3b0844b94 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Thu, 2 May 2024 09:42:10 +0700 Subject: [PATCH] clean up rector config --- rector.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/rector.php b/rector.php index 54cf334..ad3e7fc 100644 --- a/rector.php +++ b/rector.php @@ -11,11 +11,6 @@ use Rector\CodingStyle\Rector\Stmt\NewlineAfterStatementRector; use Rector\Config\RectorConfig; -use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector; -use Rector\Set\ValueObject\LevelSetList; -use Rector\Set\ValueObject\SetList; -use Rector\PHPUnit\Set\PHPUnitLevelSetList; -use Rector\Privatization\Rector\Class_\FinalizeClassesWithoutChildrenRector; return RectorConfig::configure() ->withPreparedSets( @@ -29,10 +24,8 @@ ->withPhpSets(php81: true) ->withPaths([__DIR__ . '/src', __DIR__ . '/test']) ->withRootFiles() - ->withImportNames() + ->withImportNames(removeUnusedImports: true) ->withSkip([ - // make error on controller load view - StringClassNameToClassConstantRector::class, // conflict with cs fix NewlineAfterStatementRector::class, ])