rectore auto-code-review added

This commit is contained in:
Anatoliy Poloz
2023-12-21 09:20:49 +03:00
parent 9c7dae4e37
commit 5375e06fb9
4 changed files with 124 additions and 1 deletions

29
rector.php Normal file
View File

@@ -0,0 +1,29 @@
<?php
// use Rector\Nette\Set\NetteSetList;
use Rector\Set\ValueObject\SetList;
use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
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);
};