-
-
Notifications
You must be signed in to change notification settings - Fork 364
Expand file tree
/
Copy pathrector.php
More file actions
40 lines (34 loc) · 995 Bytes
/
rector.php
File metadata and controls
40 lines (34 loc) · 995 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
30
31
32
33
34
35
36
37
38
39
40
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Scripts\Rector\VariableCasingRector;
$rectorConfig = RectorConfig::configure()
->withPaths([
__DIR__ . '/app',
__DIR__ . '/bootstrap',
__DIR__ . '/config',
__DIR__ . '/lang',
__DIR__ . '/public',
__DIR__ . '/resources',
__DIR__ . '/routes',
__DIR__ . '/scripts',
__DIR__ . '/tests',
])
// uncomment to reach your current PHP version
// ->withPhpSets()
->withTypeCoverageLevel(0)
->withDeadCodeLevel(0)
->withCodeQualityLevel(0);
$rectorConfig->withRules([
VariableCasingRector::class,
])->withSkip([
VariableCasingRector::class => [
__DIR__ . '/app/Assets/ArrayToTextTable.php',
],
__DIR__ . '/app/Metadata/Laminas/Unicode.php',
// Ignore all the test directory for now...
__DIR__ . '/tests/*',
// Ignore all hprof related files
__DIR__ . '/public/vendor/xhprof/*',
]);
return $rectorConfig;