-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrector.php
More file actions
61 lines (54 loc) · 1.95 KB
/
Copy pathrector.php
File metadata and controls
61 lines (54 loc) · 1.95 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
declare(strict_types=1);
/*
* This file is part of SolidTrack project.
*
* (c) Pierre du Plessis <open-source@solidworx.co>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
use Rector\Config\RectorConfig;
use Rector\Doctrine\Set\DoctrineSetList;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Set\ValueObject\SetList;
use Rector\Symfony\Set\SymfonySetList;
use Rector\ValueObject\PhpVersion;
return RectorConfig::configure()
->withPaths([__DIR__ . '/src'])
->withPhpVersion(PhpVersion::PHP_84)
->withImportNames(importShortClasses: true)
->withSymfonyContainerXml(__DIR__ . '/var/cache/dev/App_KernelDevDebugContainer.xml')
->withComposerBased(twig: true, doctrine: true, phpunit: true, symfony: true)
->withSets([
// General
SetList::CODE_QUALITY,
SetList::CODING_STYLE,
SetList::DEAD_CODE,
SetList::NAMED_ARGS,
SetList::RECTOR_PRESET,
SetList::CARBON,
SetList::PHP_VERSION_BASED_SET,
SetList::TYPE_DECLARATION_DOCBLOCKS,
SetList::TYPE_DECLARATION,
SetList::PRIVATIZATION,
// PHPUnit
PHPUnitSetList::PHPUNIT_MOCK_TO_STUB,
PHPUnitSetList::PHPUNIT_NARROW_ASSERTS,
PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES,
PHPUnitSetList::PHPUNIT_CODE_QUALITY,
PHPUnitSetList::COMPOSER_BASED,
// Doctrine
DoctrineSetList::COMPOSER_BASED,
DoctrineSetList::TYPED_COLLECTIONS,
DoctrineSetList::TYPED_COLLECTIONS_DOCBLOCKS,
DoctrineSetList::DOCTRINE_CODE_QUALITY,
DoctrineSetList::ANNOTATIONS_TO_ATTRIBUTES,
DoctrineSetList::GEDMO_ANNOTATIONS_TO_ATTRIBUTES,
// Symfony
SymfonySetList::COMPOSER_BASED,
SymfonySetList::SYMFONY_CODE_QUALITY,
SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION,
SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES,
SymfonySetList::CONFIGS,
]);