mirror of
https://github.com/danog/Valinor.git
synced 2024-11-30 04:39:05 +01:00
32 lines
809 B
PHP
32 lines
809 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\Caching\ValueObject\Storage\FileCacheStorage;
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Core\Configuration\Option;
|
|
use Rector\Php74\Rector\LNumber\AddLiteralSeparatorToNumberRector;
|
|
use Rector\Set\ValueObject\LevelSetList;
|
|
|
|
return static function (RectorConfig $config): void {
|
|
$config->paths([
|
|
__FILE__,
|
|
__DIR__ . '/src',
|
|
__DIR__ . '/tests',
|
|
]);
|
|
|
|
$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);
|
|
|
|
$config->sets([
|
|
LevelSetList::UP_TO_PHP_74,
|
|
]);
|
|
|
|
$config->parallel();
|
|
$config->skip([
|
|
AddLiteralSeparatorToNumberRector::class,
|
|
]);
|
|
};
|