-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrector.php
48 lines (45 loc) · 1.12 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
<?php
/**
* Copyright 2024 (C) IDMarinas - All Rights Reserved
*
* Last modified by "IDMarinas" on 03/12/2024, 21:37
*
* @project IDMarinas Common Bundle
* @see https://github.com/idmarinas/common-bundle
*
* @file rector.php
* @date 03/12/2024
* @time 21:37
*
* @author Iván Diaz Marinas (IDMarinas)
* @license BSD 3-Clause License
*
* @since 3.2.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__ . '/src',
__DIR__ . '/tests',
])
->withPhpSets(php81: true)
->withPreparedSets(
deadCode : true,
codeQuality : true,
codingStyle : true,
doctrineCodeQuality: true,
symfonyCodeQuality : true,
symfonyConfigs : true,
twig : true
)
->withImportNames(removeUnusedImports: true)
->withTypeCoverageLevel(0)
->withSets([
SymfonySetList::SYMFONY_54,
SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION,
])
->withRules([AddVoidReturnTypeWhereNoReturnRector::class])
;