-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathrector.php
More file actions
38 lines (34 loc) · 1.07 KB
/
rector.php
File metadata and controls
38 lines (34 loc) · 1.07 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
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Transform\Rector\ClassMethod\ReturnTypeWillChangeRector;
return RectorConfig::configure()
->withPaths([
// __DIR__ . '/assets',
// __DIR__ . '/automation',
// __DIR__ . '/languages',
// __DIR__ . '/lets-encrypt',
// __DIR__ . '/lib',
// __DIR__ . '/mailer',
// __DIR__ . '/modal',
// __DIR__ . '/onboarding',
// __DIR__ . '/placeholders',
__DIR__ . '/pro/security/wordpress/two-fa',
// __DIR__ . '/progress',
__DIR__ . '/security/wordpress/two-fa',
// __DIR__ . '/settings',
// __DIR__ . '/tests',
// __DIR__ . '/upgrade',
])
// uncomment to reach your current PHP version
// ->withPhpSets()
->withTypeCoverageLevel(0)
->withImportNames(true)
// ->withPhp74Sets()
->withDeadCodeLevel(1)
->withCodeQualityLevel(1)
->withRules([
ReturnTypeWillChangeRector::class,
\Rector\DeadCode\Rector\ClassMethod\RemoveUselessParamTagRector::class,
])
;