forked from eatvio/eatvio-infra
27 lines
809 B
PHP
27 lines
809 B
PHP
<?php
|
|
|
|
// use Rector\Nette\Set\NetteSetList;
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Set\ValueObject\SetList;
|
|
use RectorLaravel\Set\LaravelSetList;
|
|
|
|
return function (RectorConfig $rectorConfig): void {
|
|
$rectorConfig->paths([
|
|
__DIR__ . '/app',
|
|
__DIR__ . '/bootstrap',
|
|
__DIR__ . '/config',
|
|
__DIR__ . '/lang',
|
|
__DIR__ . '/public',
|
|
__DIR__ . '/resources',
|
|
__DIR__ . '/routes',
|
|
__DIR__ . '/tests',
|
|
]);
|
|
|
|
// $rectorConfig->import(SetList::CODING_STYLE);
|
|
// $rectorConfig->import(SetList::CODE_QUALITY);
|
|
$rectorConfig->import(SetList::DEAD_CODE);
|
|
// $rectorConfig->import(NetteSetList::NETTE_UTILS_CODE_QUALITY);
|
|
// $rectorConfig->import(LevelSetList::UP_TO_PHP_82);
|
|
$rectorConfig->import(LaravelSetList::LARAVEL_100);
|
|
};
|