mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
25 lines
709 B
PHP
25 lines
709 B
PHP
<?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 {
|
|
// skip third-party code
|
|
$rectorConfig->skip([
|
|
__DIR__ . '/src/usr/local/pfSense/include/vendor/*',
|
|
]);
|
|
|
|
$rectorConfig->paths([
|
|
__DIR__ . '/src',
|
|
]);
|
|
|
|
$rectorConfig->rule(Rector\DeadCode\Rector\Stmt\RemoveUnreachableStatementRector::class);
|
|
|
|
// $rectorConfig->rule(Rector\DeadCode\Rector\Cast\RecastingRemovalRector::class);
|
|
|
|
// $rectorConfig->rule(Rector\DeadCode\Rector\If_\RemoveAlwaysTrueIfConditionRector::class);
|
|
};
|