-
Notifications
You must be signed in to change notification settings - Fork 11
/
rector.php
41 lines (38 loc) · 1.06 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\Set\ValueObject\SetList;
use Rector\DeadCode\Rector\Assign\RemoveUnusedVariableAssignRector;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests',
])
->withSkip([
__DIR__ . '/tests/php/Fixture/views/broken-view.php',
RemoveUnusedVariableAssignRector::class => [
__DIR__ . '/tests/php/Unit/SimpleViewTest.php',
],
])
->withIndent(' ', 4)
->withImportNames(true, true, true, true)
->withSets([
SetList::PHP_52,
SetList::PHP_53,
SetList::PHP_54,
SetList::PHP_55,
SetList::PHP_56,
SetList::PHP_70,
SetList::PHP_71,
SetList::PHP_72,
SetList::PHP_73,
SetList::PHP_74,
SetList::CODE_QUALITY,
SetList::STRICT_BOOLEANS,
SetList::PRIVATIZATION,
SetList::CODING_STYLE,
SetList::EARLY_RETURN,
SetList::INSTANCEOF,
SetList::TYPE_DECLARATION,
SetList::DEAD_CODE,
]);