-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrector.php
51 lines (48 loc) · 1.2 KB
/
rector.php
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
48
49
50
51
<?php
/**
* Copyright 2025 (C) IDMarinas - All Rights Reserved
*
* Last modified by "IDMarinas" on 02/01/2025, 22:23
*
* @project IDMarinas Template Bundle
* @see https://github.com/idmarinas/idm-template-bundle
*
* @file rector.php
* @date 02/01/2025
* @time 22:23
*
* @author Iván Diaz Marinas (IDMarinas)
* @license BSD 3-Clause License
*
* @since 1.0.0
*/
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonySetList;
use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/app/src',
__DIR__ . '/factories',
__DIR__ . '/fixtures',
__DIR__ . '/src',
__DIR__ . '/tests',
])
->withPhpSets(php82: true)
->withPreparedSets(
deadCode : true,
codeQuality : true,
codingStyle : true,
doctrineCodeQuality: true,
symfonyCodeQuality : true,
symfonyConfigs : true,
twig : true
)
->withImportNames(removeUnusedImports: true)
->withTypeCoverageLevel(0)
->withSets([
SymfonySetList::SYMFONY_64,
SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION,
])
->withRules([AddVoidReturnTypeWhereNoReturnRector::class])
;