Passed
Push — master ( f8a751...8600ce )
by Zing
05:43
created

rector.php (2 issues)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
use Rector\Core\Configuration\Option;
6
use Rector\PHPUnit\Rector\Class_\AddSeeTestAnnotationRector;
7
use Rector\Set\ValueObject\SetList;
8
use Rector\SOLID\Rector\Class_\ChangeReadOnlyVariableWithDefaultValueToConstantRector;
9
use Rector\SOLID\Rector\Class_\FinalizeClassesWithoutChildrenRector;
10
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
11
12
return static function (ContainerConfigurator $containerConfigurator): void {
13
    $parameters = $containerConfigurator->parameters();
14
    $parameters->set(
15
        Option::SETS,
16
        [
17
            SetList::ACTION_INJECTION_TO_CONSTRUCTOR_INJECTION,
18
            SetList::ARRAY_STR_FUNCTIONS_TO_STATIC_CALL,
19
            SetList::PHPSTAN,
0 ignored issues
show
The constant Rector\Set\ValueObject\SetList::PHPSTAN was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
20
            SetList::PHPUNIT_CODE_QUALITY,
21
            SetList::SOLID,
0 ignored issues
show
The constant Rector\Set\ValueObject\SetList::SOLID was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
22
            SetList::DOCTRINE_CODE_QUALITY,
23
            SetList::DEAD_CODE,
24
            SetList::CODE_QUALITY,
25
            SetList::PHP_70,
26
            SetList::PHP_71,
27
            SetList::PHP_72,
28
        ]
29
    );
30
    $parameters->set(
31
        Option::SKIP,
32
        [
33
            FinalizeClassesWithoutChildrenRector::class,
34
            ChangeReadOnlyVariableWithDefaultValueToConstantRector::class,
35
            AddSeeTestAnnotationRector::class,
36
        ]
37
    );
38
    $parameters->set(
39
        Option::PATHS,
40
        [
41
            __DIR__ . '/config',
42
            __DIR__ . '/src',
43
            __DIR__ . '/tests',
44
            __DIR__ . '/ecs.php',
45
            __DIR__ . '/rector.php',
46
        ]
47
    );
48
};
49