-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrector.php
More file actions
47 lines (43 loc) · 1.36 KB
/
rector.php
File metadata and controls
47 lines (43 loc) · 1.36 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
42
43
44
45
46
47
<?php
declare(strict_types=1);
use Rector\CodingStyle\Rector\String_\UseClassKeywordForClassNameResolutionRector;
use Rector\Config\RectorConfig;
use Rector\Custom\AppHelperToMakeRector;
return RectorConfig::configure()
->withPaths([
__DIR__.'/app',
])
// Enable automatic import of fully qualified names
->withImportNames(
importNames: true,
importDocBlockNames: true, // Also import classes in PHPDoc comments
importShortClasses: false,
removeUnusedImports: false // Let Pint handle this
)
// Use the coding style set which includes import rules
->withPreparedSets(
codingStyle: true, // This enables name importing
deadCode: false,
codeQuality: false,
typeDeclarations: false,
privatization: false,
naming: false,
instanceOf: false,
earlyReturn: false,
strictBooleans: false
)
// Register custom rules
->withRules([
AppHelperToMakeRector::class,
])
// Skip rules that might interfere with Laravel conventions
->withSkip([
// Skip paths
__DIR__.'/vendor',
__DIR__.'/bootstrap',
__DIR__.'/storage',
__DIR__.'/database',
// __DIR__.'/tests',
// Skip specific rules that might cause issues
UseClassKeywordForClassNameResolutionRector::class,
]);