Add rector with laravel rules and composer normalizer

This commit is contained in:
DariusIII
2023-03-01 20:20:44 +01:00
parent ae61c3dc35
commit c360dc1e09
4 changed files with 657 additions and 13 deletions
+31
View File
@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
use RectorLaravel\Set\LaravelSetList;
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([
__DIR__ . '/Blacklight',
__DIR__ . '/app',
__DIR__ . '/bootstrap',
__DIR__ . '/cli',
__DIR__ . '/config',
__DIR__ . '/misc',
__DIR__ . '/public',
__DIR__ . '/resources',
__DIR__ . '/routes',
__DIR__ . '/tests',
]);
// register a single rule
//$rectorConfig->rule(InlineConstructorDefaultToPropertyRector::class);
// define sets of rules
$rectorConfig->sets([
LaravelSetList::LARAVEL_100
]);
};