-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrector.php
More file actions
26 lines (24 loc) · 778 Bytes
/
rector.php
File metadata and controls
26 lines (24 loc) · 778 Bytes
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
<?php
use Rector\Caching\ValueObject\Storage\MemoryCacheStorage;
use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\Node\RemoveNonExistingVarAnnotationRector;
return RectorConfig::configure()
->withSkip([
// __DIR__ . '/src/Controller/*'
])
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests',
])
->withSkip([
RemoveNonExistingVarAnnotationRector::class, // not compatible with phpstan
])
->withAttributesSets()
->withPreparedSets(typeDeclarations: true)
// ->withTypeCoverageLevel(100)
->withPreparedSets(deadCode: true)
// ->withDeadCodeLevel(100)
->withPreparedSets(codeQuality: true)
// ->withCodeQualityLevel(100)
->withCache(cacheClass: MemoryCacheStorage::class)
;