-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrector.php
More file actions
41 lines (38 loc) · 1.28 KB
/
Copy pathrector.php
File metadata and controls
41 lines (38 loc) · 1.28 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
<?php
declare(strict_types=1);
use Rector\Config\Level\CodeQualityLevel;
use Rector\Config\Level\CodingStyleLevel;
use Rector\Config\Level\DeadCodeLevel;
use Rector\Config\Level\TypeDeclarationLevel;
use Rector\Config\RectorConfig;
use Rector\PHPUnit\PHPUnit100\Rector\Class_\StaticDataProviderClassMethodRector;
use RectorLaravel\Set\LaravelLevelSetList;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/bootstrap/app.php',
__DIR__ . '/config',
__DIR__ . '/database/migrations',
__DIR__ . '/database/seeders',
__DIR__ . '/public/index.php',
__DIR__ . '/src',
__DIR__ . '/tests',
])
->withPhpSets(php83: true)
->withPreparedSets(
rectorPreset: true,
phpunitCodeQuality: true,
)
->withDeadCodeLevel(count(DeadCodeLevel::RULES))
->withTypeCoverageLevel(count(TypeDeclarationLevel::RULES))
->withCodeQualityLevel(count(CodeQualityLevel::RULES))
->withCodingStyleLevel(count(CodingStyleLevel::RULES))
->withSets([
LaravelLevelSetList::UP_TO_LARAVEL_110,
])
->withAttributesSets(phpunit: true)
->withRules([
StaticDataProviderClassMethodRector::class,
])
->withSkip([
\Rector\Php81\Rector\Array_\ArrayToFirstClassCallableRector::class,
]);