-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrector.php
More file actions
46 lines (43 loc) · 1.08 KB
/
rector.php
File metadata and controls
46 lines (43 loc) · 1.08 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
<?php
/**
* Copyright 2025-2026 (C) IDMarinas - All Rights Reserved
*
* Last modified by "IDMarinas" on 04/01/2026, 21:27
*
* @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;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/config',
__DIR__ . '/src',
__DIR__ . '/tests',
])
->withPhpSets(php83: true)
->withPreparedSets(
phpunitCodeQuality : true,
doctrineCodeQuality: true,
symfonyCodeQuality : true,
symfonyConfigs : true
)
->withTypeCoverageLevel(0)
->withDeadCodeLevel(0)
->withCodeQualityLevel(0)
->withImportNames(importDocBlockNames: false, removeUnusedImports: true)
->withComposerBased(twig: true, doctrine: true, symfony: true)
->withSymfonyContainerXml(__DIR__ . '/var/cache/dev/App_KernelDevDebugContainer.xml')
->withSkip([
__DIR__ . '/tests/app/config/bundles.php',
])
;