-
Notifications
You must be signed in to change notification settings - Fork 43
/
rector.php
37 lines (33 loc) · 1.23 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
<?php
declare(strict_types=1);
/*
* This file is part of HackzillaTicketBundle package.
*
* (c) Daniel Platt <[email protected]>
*
* 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_74,
DoctrineSetList::ANNOTATIONS_TO_ATTRIBUTES,
SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES,
SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION,
SetList::TYPE_DECLARATION,
PHPUnitSetList::PHPUNIT_CODE_QUALITY,
])
;