AntCMS/rector.php

33 lines
908 B
PHP
Raw Normal View History

2023-01-12 08:20:13 +00:00
<?php
declare(strict_types=1);
use Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector;
use Rector\CodingStyle\Rector\FuncCall\ConsistentPregDelimiterRector;
2023-01-12 08:20:13 +00:00
use Rector\Config\RectorConfig;
use Rector\Php80\Rector\FunctionLike\MixedTypeRector;
use Rector\Php80\Rector\FunctionLike\UnionTypesRector;
use Rector\Set\ValueObject\SetList;
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([
__DIR__ . '/src',
__DIR__ . '/tests',
]);
$rectorConfig->skip([
__DIR__ . '/src/Vendor',
__DIR__ . '/src/Cache',
UnionTypesRector::class,
MixedTypeRector::class,
EncapsedStringsToSprintfRector::class,
ConsistentPregDelimiterRector::class,
2023-01-12 08:20:13 +00:00
]);
$rectorConfig->sets([
SetList::PHP_80,
SetList::CODE_QUALITY,
SetList::CODING_STYLE,
SetList::NAMING,
2023-01-12 08:20:13 +00:00
]);
};