forked from sveneisenschmidt/bmecat
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathrector.php
More file actions
42 lines (38 loc) · 1.58 KB
/
Copy pathrector.php
File metadata and controls
42 lines (38 loc) · 1.58 KB
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
42
<?php
/** @noinspection DevelopmentDependenciesUsageInspection */
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
use Rector\Set\ValueObject\SetList;
use Utils\Rector\Rector\AddDocBlockWithMethodHintsToNodeInterfaceClassesRector;
use Utils\Rector\Rector\NodeInterfaceAddGenericImplementsAttributeRector;
use Utils\Rector\Rector\NodeInterfaceAddHasSerializableAttributesTraitRector;
use Utils\Rector\Rector\NodeInterfaceConstructorCallToNodeBuilderFromArrayRector;
use Utils\Rector\Rector\NodeInterfaceDocBlocKTypeHintsToTypedPropertyRector;
use Utils\Rector\Rector\NodeInterfaceRemoveSimpleGettersRector;
use Utils\Rector\Rector\NodeInterfaceRemoveSimpleSettersRector;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests',
])
// uncomment to reach your current PHP version
->withSets([
SetList::TYPE_DECLARATION,
SetList::CODE_QUALITY,
SetList::CODING_STYLE,
])
->withPhpSets()
->withRules([
NodeInterfaceDocBlocKTypeHintsToTypedPropertyRector::class,
NodeInterfaceConstructorCallToNodeBuilderFromArrayRector::class,
NodeInterfaceAddHasSerializableAttributesTraitRector::class,
NodeInterfaceRemoveSimpleGettersRector::class,
NodeInterfaceRemoveSimpleSettersRector::class,
NodeInterfaceAddGenericImplementsAttributeRector::class,
AddDocBlockWithMethodHintsToNodeInterfaceClassesRector::class,
])
->withSkip([
NullToStrictStringFuncCallArgRector::class,
])
;