Valinor/rector.php

28 lines
611 B
PHP
Raw Normal View History

2022-05-21 16:37:16 +02:00
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Core\Configuration\Option;
2022-05-21 16:37:16 +02:00
use Rector\Php74\Rector\LNumber\AddLiteralSeparatorToNumberRector;
use Rector\Set\ValueObject\LevelSetList;
return static function (RectorConfig $config): void {
$config->paths([
2022-05-21 16:37:16 +02:00
__FILE__,
__DIR__ . '/src',
__DIR__ . '/tests',
]);
$config->parameters()->set(Option::CACHE_DIR, 'var/cache/rector');
$config->sets([
2022-05-21 16:37:16 +02:00
LevelSetList::UP_TO_PHP_74,
]);
$config->parallel();
$config->skip([
2022-05-21 16:37:16 +02:00
AddLiteralSeparatorToNumberRector::class,
]);
};