forked from ampache/ampache
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrector.php
More file actions
37 lines (34 loc) · 1.47 KB
/
Copy pathrector.php
File metadata and controls
37 lines (34 loc) · 1.47 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
<?php
declare(strict_types=1);
use Rector\Caching\ValueObject\Storage\FileCacheStorage;
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
use Rector\CodeQuality\Rector\Identical\FlipTypeControlToUseExclusiveTypeRector;
use Rector\CodingStyle\Rector\Closure\StaticClosureRector;
use Rector\Config\RectorConfig;
use Rector\CodingStyle\Rector\ClassLike\NewlineBetweenClassLikeStmtsRector;
use Rector\Php74\Rector\Assign\NullCoalescingOperatorRector;
use Rector\Php84\Rector\Class_\DeprecatedAnnotationToDeprecatedAttributeRector;
use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/src/Config/Init',
__DIR__ . '/src/Gui',
__DIR__ . '/src/Module',
__DIR__ . '/src/Plugin',
__DIR__ . '/src/Repository',
__DIR__ . '/tests',
])
->withCache(__DIR__ . '/build/rector', FileCacheStorage::class)
->withImportNames()
->withPhpSets(php85: true)
->withPreparedSets(deadCode: true, codeQuality: true, codingStyle: true)
->withSkip([
FlipTypeControlToUseExclusiveTypeRector::class,
NewlineBetweenClassLikeStmtsRector::class,
DeprecatedAnnotationToDeprecatedAttributeRector::class,
DisallowedEmptyRuleFixerRector::class,
NullCoalescingOperatorRector::class,
__DIR__ . '/src/Module/Api',
__DIR__ . '/src/Module/System/Update/Migration',
__DIR__ . '/src/Repository/Model',
]);