From 47f879db68ac0345df1dc14be3fbf1566808a4ab Mon Sep 17 00:00:00 2001 From: Denny Septian Panggabean <97607754+ddevsr@users.noreply.github.com> Date: Tue, 2 Apr 2024 09:03:22 +0700 Subject: [PATCH] Update rector.php --- rector.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/rector.php b/rector.php index 81a005c..cfc7a7f 100644 --- a/rector.php +++ b/rector.php @@ -12,6 +12,7 @@ */ use PHPDevsr\Rector\Codeigniter4\Set\CodeigniterSetList; +use Rector\Caching\ValueObject\Storage\FileCacheStorage; use Rector\Config\RectorConfig; use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector; use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector; @@ -23,30 +24,23 @@ ->withSets([ CodeigniterSetList::CODEIGNITER_44, ]) - // auto import fully qualified class names ->withImportNames(removeUnusedImports: true) - // The paths to refactor (can also be supplied with CLI arguments) ->withPaths([ __DIR__ . '/app', __DIR__ . '/tests', ]) - + ->withParallel(120, 8, 10) + ->withCache('/tmp/rector', FileCacheStorage::class) // Include Composer's autoload - required for global execution, remove if running locally ->withAutoloadPaths([ __DIR__ . '/vendor/autoload.php', ]) - // Do you need to include constants, class aliases, or a custom autoloader? ->withBootstrapFiles([ realpath(getcwd()) . '/vendor/codeigniter4/framework/system/Test/bootstrap.php', ]) - - if (is_file(__DIR__ . '/phpstan.neon.dist')) { - ->withPHPStanConfigs(__DIR__ . '/phpstan.neon.dist') - } - // Are there files or rules you need to skip? ->withSkip([ __DIR__ . '/app/Views',