-
Notifications
You must be signed in to change notification settings - Fork 2
/
rector.php
41 lines (38 loc) · 1.07 KB
/
rector.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPublicMethodParameterRector;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\PostRector\Rector\NameImportingPostRector;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/Classes',
__DIR__ . '/Configuration',
__DIR__ . '/Tests',
])
->withPhpSets()
->withAutoloadPaths([
__DIR__ . '/.Build/vendor/autoload.php',
])
->withImportNames(
importShortClasses: false,
removeUnusedImports: true,
)
->withPreparedSets(
deadCode: true,
codeQuality: true,
typeDeclarations: true,
earlyReturn: true,
)
->withSets([
PHPUnitSetList::PHPUNIT_100,
])
->withRootFiles()
->withSkip([
NameImportingPostRector::class => [
__DIR__ . '/Configuration/TCA/*',
],
RemoveUnusedPublicMethodParameterRector::class => [
__DIR__ . '/Classes/Hooks/DropObfuscatedPasswordInConnection.php',
],
]);