Revision 6628b730
Added by Christian McDonald over 2 years ago
rector.php | ||
---|---|---|
1 | 1 |
<?php |
2 |
|
|
3 | 2 |
declare(strict_types=1); |
4 | 3 |
|
5 |
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
|
|
4 |
use Utils\Rector\Rector\MyFirstRector;
|
|
6 | 5 |
use Rector\Config\RectorConfig; |
7 |
use Rector\Set\ValueObject\LevelSetList; |
|
8 | 6 |
|
9 | 7 |
return static function (RectorConfig $rectorConfig): void { |
10 | 8 |
// skip third-party code |
... | ... | |
16 | 14 |
__DIR__ . '/src', |
17 | 15 |
]); |
18 | 16 |
|
19 |
$rectorConfig->rule(Rector\DeadCode\Rector\Stmt\RemoveUnreachableStatementRector::class); |
|
20 |
|
|
21 |
// $rectorConfig->rule(Rector\DeadCode\Rector\Cast\RecastingRemovalRector::class); |
|
17 |
$rectorConfig->rule(MyFirstRector::class); |
|
22 | 18 |
|
23 |
// $rectorConfig->rule(Rector\DeadCode\Rector\If_\RemoveAlwaysTrueIfConditionRector::class); |
|
24 | 19 |
}; |
Also available in: Unified diff
More Rector integration