-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathrector.php
More file actions
55 lines (44 loc) · 1.38 KB
/
Copy pathrector.php
File metadata and controls
55 lines (44 loc) · 1.38 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
<?php
/*
* This file is part of Phyxo package
*
* Copyright(c) Nicolas Roudaire https://www.phyxo.net/
* Licensed under the GPL version 2.0 license.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Doctrine\Set\DoctrineSetList;
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Symfony\Set\SymfonySetList;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests',
])
->withSkipPath(__DIR__ . '/src/Phyxo/Functions/Ws/')
->withImportNames()
->withAttributesSets()
->withPhpSets()
->withComposerBased(twig: true, doctrine: true, phpunit: true)
->withSets([
DoctrineSetList::ANNOTATIONS_TO_ATTRIBUTES,
SymfonySetList::SYMFONY_CODE_QUALITY,
SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION,
SymfonySetList::SYMFONY_72,
LevelSetList::UP_TO_PHP_84,
DoctrineSetList::DOCTRINE_CODE_QUALITY,
])
->withRules([
ClassPropertyAssignToConstructorPromotionRector::class,
])
->withPreparedSets(
deadCode: true,
codeQuality: true,
// naming: true,
privatization: true,
typeDeclarations: true
);