2022-09-17 09:09:04 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare (strict_types=1);
|
2023-02-02 09:24:12 +00:00
|
|
|
namespace RectorPrefix202302;
|
2022-09-17 09:09:04 +00:00
|
|
|
|
|
|
|
use Rector\Config\RectorConfig;
|
|
|
|
use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector;
|
|
|
|
use Rector\Set\ValueObject\LevelSetList;
|
|
|
|
use Rector\Set\ValueObject\SetList;
|
|
|
|
return static function (RectorConfig $rectorConfig) : void {
|
2023-02-04 13:37:11 +00:00
|
|
|
$rectorConfig->sets([LevelSetList::UP_TO_PHP_81, SetList::CODE_QUALITY, SetList::DEAD_CODE, SetList::NAMING, \Rector\PHPUnit\Set\PHPUnitSetList::PHPUNIT_100]);
|
2022-09-17 09:09:04 +00:00
|
|
|
$rectorConfig->importNames();
|
|
|
|
$rectorConfig->paths([__DIR__ . '/src', __DIR__ . '/tests']);
|
|
|
|
$rectorConfig->skip([StringClassNameToClassConstantRector::class => [__DIR__ . '/config']]);
|
2022-09-27 14:38:17 +00:00
|
|
|
$rectorConfig->ruleWithConfiguration(StringClassNameToClassConstantRector::class, ['PhpParser\\PhpVersion', 'PhpParser\\ParserFactory']);
|
2022-09-17 09:09:04 +00:00
|
|
|
$rectorConfig->parallel();
|
|
|
|
};
|