forked from rectorphp/rector-src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
easy-ci.php
98 lines (94 loc) · 4.49 KB
/
easy-ci.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?php
declare(strict_types=1);
use PHPStan\PhpDocParser\Parser\TypeParser;
use Rector\BetterPhpDocParser\Contract\PhpDocParser\PhpDocNodeDecoratorInterface;
use Rector\BetterPhpDocParser\PhpDoc\ArrayItemNode;
use Rector\CodeQuality\NodeTypeGroup;
use Rector\CodingStyle\Contract\ClassNameImport\ClassNameImportSkipVoterInterface;
use Rector\Core\Contract\Console\OutputStyleInterface;
use Rector\Core\Contract\PhpParser\Node\StmtsAwareInterface;
use Rector\Core\Contract\PHPStan\Reflection\TypeToCallReflectionResolver\TypeToCallReflectionResolverInterface;
use Rector\Core\Contract\Processor\FileProcessorInterface;
use Rector\Core\Contract\Rector\RectorInterface;
use Rector\Core\Contract\Template\TemplateResolverInterface;
use Rector\Core\NodeAnalyzer\CoalesceAnalyzer;
use Rector\Core\NodeDecorator\NamespacedNameDecorator;
use Rector\Core\NodeManipulator\MethodCallManipulator;
use Rector\Core\PhpParser\Node\NamedVariableFactory;
use Rector\DependencyInjection\NodeManipulator\PropertyConstructorInjectionManipulator;
use Rector\FileSystemRector\Parser\FileInfoParser;
use Rector\Naming\Contract\AssignVariableNameResolverInterface;
use Rector\Naming\Contract\Guard\ConflictingNameGuardInterface;
use Rector\NodeCollector\BinaryOpTreeRootLocator;
use Rector\NodeNameResolver\Contract\NodeNameResolverInterface;
use Rector\NodeTypeResolver\Contract\NodeTypeResolverInterface;
use Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory;
use Rector\NodeTypeResolver\Reflection\BetterReflection\RectorBetterReflectionSourceLocatorFactory;
use Rector\NodeTypeResolver\TypeAnalyzer\MethodTypeAnalyzer;
use Rector\Php80\Contract\AttributeDecoratorInterface;
use Rector\Php80\Contract\StrStartWithMatchAndRefactorInterface;
use Rector\Php81\NodeFactory\ClassFromEnumFactory;
use Rector\PhpAttribute\Contract\AnnotationToAttributeMapperInterface;
use Rector\PhpAttribute\NodeFactory\DoctrineAnnotationFactory;
use Rector\PhpDocParser\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
use Rector\PHPStanStaticTypeMapper\Contract\TypeMapperInterface;
use Rector\ReadWrite\Contract\ParentNodeReadAnalyzerInterface;
use Rector\ReadWrite\Contract\ReadNodeAnalyzerInterface;
use Rector\Set\Contract\SetListInterface;
use Rector\Skipper\Contract\SkipVoterInterface;
use Rector\StaticTypeMapper\Contract\PhpDocParser\PhpDocTypeMapperInterface;
use Rector\StaticTypeMapper\Contract\PhpParser\PhpParserNodeMapperInterface;
use Rector\Testing\PHPUnit\AbstractTestCase;
use Rector\TypeDeclaration\Contract\PHPStan\TypeWithClassTypeSpecifierInterface;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Command\Command;
use Symplify\EasyCI\Config\EasyCIConfig;
return static function (EasyCIConfig $easyCiConfig): void {
$easyCiConfig->typesToSkip([
SkipVoterInterface::class,
AttributeDecoratorInterface::class,
ArrayItemNode::class,
PhpDocNodeDecoratorInterface::class,
Command::class,
Application::class,
RectorInterface::class,
TypeToCallReflectionResolverInterface::class,
FileProcessorInterface::class,
ClassNameImportSkipVoterInterface::class,
StrStartWithMatchAndRefactorInterface::class,
PhpDocTypeMapperInterface::class,
PhpParserNodeMapperInterface::class,
TypeMapperInterface::class,
AbstractPhpDocNodeVisitor::class,
NodeNameResolverInterface::class,
NodeTypeResolverInterface::class,
ReadNodeAnalyzerInterface::class,
SetListInterface::class,
ConflictingNameGuardInterface::class,
TypeParser::class,
RectorBetterReflectionSourceLocatorFactory::class,
AbstractTestCase::class,
PHPStanServicesFactory::class,
OutputStyleInterface::class,
MethodCallManipulator::class,
AssignVariableNameResolverInterface::class,
// fix later - rector-symfony
PropertyConstructorInjectionManipulator::class,
// used in tests
FileInfoParser::class,
AnnotationToAttributeMapperInterface::class,
TypeWithClassTypeSpecifierInterface::class,
ParentNodeReadAnalyzerInterface::class,
StmtsAwareInterface::class,
NodeTypeGroup::class,
// deprecated, keep it for now
TemplateResolverInterface::class,
MethodTypeAnalyzer::class,
DoctrineAnnotationFactory::class,
ClassFromEnumFactory::class,
CoalesceAnalyzer::class,
NamespacedNameDecorator::class,
NamedVariableFactory::class,
BinaryOpTreeRootLocator::class,
]);
};