-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrector.php
More file actions
29 lines (26 loc) · 741 Bytes
/
rector.php
File metadata and controls
29 lines (26 loc) · 741 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
27
28
29
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\ValueObject\PhpVersion;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/.',
])
// Skip non-project directories.
->withSkip([
__DIR__ . '/.git',
__DIR__ . '/.github',
__DIR__ . '/vendor',
__DIR__ . '/resources',
])
->withRootFiles()
->withIndent(' ', 4)
->withComposerBased(phpunit: true)
->withTypeCoverageLevel(10)
->withDeadCodeLevel(10)
->withCodeQualityLevel(10)
->withCodingStyleLevel(10)
// Force Rector to use PHP x.x features only.
->withPhpVersion(PhpVersion::PHP_85)
// Import Rector sets relevant for PHP x.x.
->withPhpSets(php85: true);