-
Notifications
You must be signed in to change notification settings - Fork 3
/
rector.php
48 lines (44 loc) · 1.63 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
declare(strict_types=1);
/*
* This file is part of HackzillaTicketBundle package.
*
* (c) Daniel Platt <github@ofdan.co.uk>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Rector\Config\RectorConfig;
use Rector\Doctrine\Set\DoctrineSetList;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;
use Rector\Symfony\Set\SymfonySetList;
return RectorConfig::configure()
->withPaths([__DIR__])
->withSkip([__DIR__.'/vendor'])
// uncomment to reach your current PHP version
// ->withTypeCoverageLevel(0)
->withPhpSets(php83: true)
->withPreparedSets(deadCode: true, codeQuality: true, typeDeclarations: true, doctrineCodeQuality: true, symfonyCodeQuality: true, symfonyConfigs: true, twig: true, phpunit: true)
->withImportNames(importNames: true, removeUnusedImports: true)
->withSets([
LevelSetList::UP_TO_PHP_82,
DoctrineSetList::ANNOTATIONS_TO_ATTRIBUTES,
SymfonySetList::SYMFONY_51,
SymfonySetList::SYMFONY_52,
SymfonySetList::SYMFONY_53,
SymfonySetList::SYMFONY_54,
SymfonySetList::SYMFONY_60,
SymfonySetList::SYMFONY_61,
SymfonySetList::SYMFONY_62,
SymfonySetList::SYMFONY_63,
SymfonySetList::SYMFONY_64,
SymfonySetList::SYMFONY_71,
SymfonySetList::SYMFONY_CODE_QUALITY,
SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES,
SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION,
SetList::TYPE_DECLARATION,
PHPUnitSetList::PHPUNIT_CODE_QUALITY,
])
;