mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
9a86942399
86c0920bdf
[Init] Add smart paths detection to init command to make first Rector experience better (#3050)
22 lines
515 B
Plaintext
22 lines
515 B
Plaintext
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Set\ValueObject\LevelSetList;
|
|
|
|
return static function (RectorConfig $rectorConfig): void {
|
|
$rectorConfig->paths([
|
|
__PATHS__
|
|
]);
|
|
|
|
// register a single rule
|
|
$rectorConfig->rule(InlineConstructorDefaultToPropertyRector::class);
|
|
|
|
// define sets of rules
|
|
// $rectorConfig->sets([
|
|
// LevelSetList::UP_TO_PHP_XY
|
|
// ]);
|
|
};
|