forked from eatvio/eatvio-infra
rectore auto-code-review added
This commit is contained in:
29
rector.php
Normal file
29
rector.php
Normal 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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user