1 |
bfa54b82
|
Christian McDonald
|
<?php
|
2 |
|
|
|
3 |
|
|
declare(strict_types=1);
|
4 |
|
|
|
5 |
|
|
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
|
6 |
|
|
use Rector\Config\RectorConfig;
|
7 |
|
|
use Rector\Set\ValueObject\LevelSetList;
|
8 |
|
|
|
9 |
|
|
return static function (RectorConfig $rectorConfig): void {
|
10 |
|
|
// skip third-party code
|
11 |
|
|
$rectorConfig->skip([
|
12 |
|
|
__DIR__ . '/src/usr/local/pfSense/include/vendor/*',
|
13 |
|
|
]);
|
14 |
|
|
|
15 |
|
|
$rectorConfig->paths([
|
16 |
|
|
__DIR__ . '/src',
|
17 |
|
|
]);
|
18 |
|
|
|
19 |
|
|
$rectorConfig->rule(Rector\DeadCode\Rector\Stmt\RemoveUnreachableStatementRector::class);
|
20 |
|
|
|
21 |
|
|
// $rectorConfig->rule(Rector\DeadCode\Rector\Cast\RecastingRemovalRector::class);
|
22 |
|
|
|
23 |
|
|
// $rectorConfig->rule(Rector\DeadCode\Rector\If_\RemoveAlwaysTrueIfConditionRector::class);
|
24 |
|
|
};
|