2022-05-21 16:37:16 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2022-08-31 01:03:20 +02:00
|
|
|
use Rector\Caching\ValueObject\Storage\FileCacheStorage;
|
2022-05-21 16:37:16 +02:00
|
|
|
use Rector\Config\RectorConfig;
|
2022-05-26 18:16:09 +02:00
|
|
|
use Rector\Core\Configuration\Option;
|
2022-05-21 16:37:16 +02:00
|
|
|
use Rector\Php74\Rector\LNumber\AddLiteralSeparatorToNumberRector;
|
|
|
|
use Rector\Set\ValueObject\LevelSetList;
|
|
|
|
|
2022-05-26 18:16:09 +02:00
|
|
|
return static function (RectorConfig $config): void {
|
|
|
|
$config->paths([
|
2022-05-21 16:37:16 +02:00
|
|
|
__FILE__,
|
|
|
|
__DIR__ . '/src',
|
|
|
|
__DIR__ . '/tests',
|
|
|
|
]);
|
|
|
|
|
2022-08-31 01:03:20 +02:00
|
|
|
$config->parameters()->set(Option::CACHE_DIR, './var/cache/rector');
|
|
|
|
|
|
|
|
// @see https://github.com/rectorphp/rector/issues/7341
|
|
|
|
$config->parameters()->set(Option::CACHE_CLASS, FileCacheStorage::class);
|
2022-05-26 18:16:09 +02:00
|
|
|
|
|
|
|
$config->sets([
|
2022-05-21 16:37:16 +02:00
|
|
|
LevelSetList::UP_TO_PHP_74,
|
|
|
|
]);
|
|
|
|
|
2022-05-26 18:16:09 +02:00
|
|
|
$config->parallel();
|
|
|
|
$config->skip([
|
2022-05-21 16:37:16 +02:00
|
|
|
AddLiteralSeparatorToNumberRector::class,
|
|
|
|
]);
|
|
|
|
};
|