ConLite/rector.php

36 Zeilen
907 B
PHP

<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;
return static function (RectorConfig $rectorConfig): void {
/*
$rectorConfig->autoloadPaths([
__DIR__ . '/conlite',
__DIR__ . '/conlib',
__DIR__ . '/setup',
]);
*/
$rectorConfig->bootstrapFiles([
__DIR__ . '/rector_cl_autoload.php',
]);
$rectorConfig->parallel();
$rectorConfig->paths([
__DIR__.'/conlite',
]);
$rectorConfig->skip([
__DIR__ . DIRECTORY_SEPARATOR . 'node_modules',
__DIR__ . DIRECTORY_SEPARATOR . 'var',
__DIR__ . DIRECTORY_SEPARATOR . 'vendor',
]);
$rectorConfig->importNames();
$rectorConfig->sets([
LevelSetList::UP_TO_PHP_80,
SetList::CODE_QUALITY,
SetList::DEAD_CODE,
SetList::NAMING,
]);
};