mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 13:28:18 +01:00
use exclude as list
This commit is contained in:
parent
cea84035e2
commit
a3693df310
@ -33,7 +33,7 @@
|
||||
"require-dev": {
|
||||
"friendsofphp/php-cs-fixer": "^2.16",
|
||||
"jetbrains/phpstorm-stubs": "^2019.2",
|
||||
"ocramius/package-versions": "^1.5",
|
||||
"ocramius/package-versions": "^1.4|^1.5",
|
||||
"phpunit/phpunit": "^7.5|^8.4",
|
||||
"symplify/changelog-linker": "^6.1",
|
||||
"symplify/easy-coding-standard": "^6.1",
|
||||
|
@ -5,7 +5,18 @@ services:
|
||||
|
||||
Rector\:
|
||||
resource: '../src'
|
||||
exclude: '../src/{Node/Attribute.php,Rector/**/*Rector.php,Reporting/FileDiff.php,Testing/PHPUnit,RectorDefinition,PhpParser/Node/*Info.php,Exception/*,DependencyInjection/CompilerPass/*,DependencyInjection/Loader/*,Application/Error.php,HttpKernel/RectorKernel.php,ValueObject/*}'
|
||||
exclude:
|
||||
- '../src/Rector/**/*Rector.php'
|
||||
- '../src/Reporting/FileDiff.php'
|
||||
- '../src/Testing/PHPUnit/*'
|
||||
- '../src/RectorDefinition/*'
|
||||
- '../src/PhpParser/Node/*Info.php'
|
||||
- '../src/Exception/*'
|
||||
- '../src/DependencyInjection/CompilerPass/*'
|
||||
- '../src/DependencyInjection/Loader/*'
|
||||
- '../src/Application/Error.php'
|
||||
- '../src/HttpKernel/RectorKernel.php'
|
||||
- '../src/ValueObject/*'
|
||||
|
||||
# extra services
|
||||
Rector\Symfony\Rector\Form\Helper\FormTypeStringToTypeProvider: ~
|
||||
|
@ -5,4 +5,5 @@ services:
|
||||
|
||||
Rector\Architecture\:
|
||||
resource: '../src'
|
||||
exclude: '../src/{Rector/**/*Rector.php}'
|
||||
exclude:
|
||||
- '../src/Rector/**/*Rector.php'
|
||||
|
@ -5,4 +5,6 @@ services:
|
||||
|
||||
Rector\Autodiscovery\:
|
||||
resource: '../src'
|
||||
exclude: '../src/{Rector/**/*Rector.php,ValueObject/*}'
|
||||
exclude:
|
||||
- '../src/Rector/**/*Rector.php'
|
||||
- '../src/ValueObject/*'
|
||||
|
@ -5,7 +5,12 @@ services:
|
||||
|
||||
Rector\BetterPhpDocParser\:
|
||||
resource: '../src'
|
||||
exclude: '../src/{ValueObject/*,*/*Info.php,*Info.php,Attributes/Ast/PhpDoc/*,PhpDocNode/*}'
|
||||
exclude:
|
||||
- '../src/ValueObject/*'
|
||||
- '../src/*/*Info.php'
|
||||
- '../src/*Info.php'
|
||||
- '../src/Attributes/Ast/PhpDoc/*'
|
||||
- '../src/PhpDocNode/*'
|
||||
|
||||
PHPStan\PhpDocParser\Lexer\Lexer: ~
|
||||
PHPStan\PhpDocParser\Parser\TypeParser: ~
|
||||
|
@ -5,4 +5,5 @@ services:
|
||||
|
||||
Rector\CodingStyle\:
|
||||
resource: '../src'
|
||||
exclude: '../src/{Rector/**/*Rector.php}'
|
||||
exclude:
|
||||
- '../src/Rector/**/*Rector.php'
|
||||
|
@ -5,4 +5,6 @@ services:
|
||||
|
||||
Rector\DeadCode\:
|
||||
resource: '../src'
|
||||
exclude: '../src/{Rector/**/*Rector.php,Data/*}'
|
||||
exclude:
|
||||
- '../src/Rector/**/*Rector.php'
|
||||
- '../src/Data/*'
|
||||
|
@ -5,7 +5,8 @@ services:
|
||||
|
||||
Rector\Doctrine\:
|
||||
resource: '../src'
|
||||
exclude: '../src/{Rector/**/*Rector.php,ValueObject/*}'
|
||||
exclude:
|
||||
- '../src/Rector/**/*Rector.php'
|
||||
|
||||
Rector\Doctrine\Contract\Mapper\DoctrineEntityAndRepositoryMapperInterface:
|
||||
alias: 'Rector\Doctrine\Mapper\DefaultDoctrineEntityAndRepositoryMapper'
|
||||
|
@ -5,4 +5,5 @@ services:
|
||||
|
||||
Rector\DynamicTypeAnalysis\:
|
||||
resource: '../src'
|
||||
exclude: '../src/{Rector/**/*Rector.php}'
|
||||
exclude:
|
||||
- '../src/Rector/**/*Rector.php'
|
||||
|
@ -5,4 +5,5 @@ services:
|
||||
|
||||
Rector\ElasticSearchDSL\:
|
||||
resource: '../src'
|
||||
exclude: '../src/{Rector/**/*Rector.php}'
|
||||
exclude:
|
||||
- '../src/Rector/**/*Rector.php'
|
||||
|
@ -5,4 +5,5 @@ services:
|
||||
|
||||
Rector\FileSystemRector\:
|
||||
resource: '../src'
|
||||
exclude: '../src/{Rector/**/*Rector.php}'
|
||||
exclude:
|
||||
- '../src/Rector/**/*Rector.php'
|
||||
|
@ -5,4 +5,5 @@ services:
|
||||
|
||||
Rector\Legacy\:
|
||||
resource: '../src'
|
||||
exclude: '../src/{Rector/**/*Rector.php}'
|
||||
exclude:
|
||||
- '../src/Rector/**/*Rector.php'
|
||||
|
@ -5,4 +5,5 @@ services:
|
||||
|
||||
Rector\NetteTesterToPHPUnit\:
|
||||
resource: '../src'
|
||||
exclude: '../src/{Rector/**/*Rector.php}'
|
||||
exclude:
|
||||
- '../src/Rector/**/*Rector.php'
|
||||
|
@ -5,4 +5,7 @@ services:
|
||||
|
||||
Rector\NetteToSymfony\:
|
||||
resource: '../src'
|
||||
exclude: '../src/{Rector/**/*Rector.php,Route/RouteInfo.php,Event/EventInfo.php,Rector/*,PhpDocParser/Ast/PhpDoc/*}'
|
||||
exclude:
|
||||
- '../src/Rector/**/*Rector.php'
|
||||
- '../src/Route/RouteInfo.php'
|
||||
- '../src/Event/EventInfo.php'
|
||||
|
@ -5,8 +5,10 @@ services:
|
||||
|
||||
Rector\NodeTypeResolver\:
|
||||
resource: '../src'
|
||||
# "Type" is because the file is needed for PHPStan container only
|
||||
exclude: '../src/{Contract,Php/*Info.php,PHPStanOverride/*,Type}'
|
||||
exclude:
|
||||
- '../src/Contract'
|
||||
# "Type" is because the file is needed for PHPStan container only
|
||||
- '../src/Type'
|
||||
|
||||
Rector\Php\TypeAnalyzer: ~
|
||||
Rector\FileSystem\FilesFinder: ~
|
||||
|
@ -5,4 +5,6 @@ services:
|
||||
|
||||
Rector\PHPUnit\:
|
||||
resource: '../src'
|
||||
exclude: '../src/{Rector/**/*Rector.php,ValueObject/*}'
|
||||
exclude:
|
||||
- '../src/Rector/**/*Rector.php'
|
||||
- '../src/ValueObject/*'
|
||||
|
@ -5,4 +5,6 @@ services:
|
||||
|
||||
Rector\PSR4\:
|
||||
resource: '../src'
|
||||
exclude: '../src/{Rector/**/*Rector.php,ValueObject/*}'
|
||||
exclude:
|
||||
- '../src/Rector/**/*Rector.php'
|
||||
- '../src/ValueObject/*'
|
||||
|
@ -5,4 +5,6 @@ services:
|
||||
|
||||
Rector\Php70\:
|
||||
resource: '../src'
|
||||
exclude: '../src/{Rector/**/*Rector.php,Exception/*}'
|
||||
exclude:
|
||||
- '../src/Rector/**/*Rector.php'
|
||||
- '../src/Exception/*'
|
||||
|
@ -5,4 +5,5 @@ services:
|
||||
|
||||
Rector\Php71\:
|
||||
resource: '../src'
|
||||
exclude: '../src/{Rector/**/*Rector.php}'
|
||||
exclude:
|
||||
- '../src/Rector/**/*Rector.php'
|
||||
|
@ -5,4 +5,5 @@ services:
|
||||
|
||||
Rector\PhpSpecToPHPUnit\:
|
||||
resource: '../src'
|
||||
exclude: '../src/{Rector/**/*Rector.php}'
|
||||
exclude:
|
||||
- '../src/Rector/**/*Rector.php'
|
||||
|
@ -5,4 +5,5 @@ services:
|
||||
|
||||
Rector\RemovingStatic\:
|
||||
resource: '../src'
|
||||
exclude: '../src/{Rector/**/*Rector.php}'
|
||||
exclude:
|
||||
- '../src/Rector/**/*Rector.php'
|
||||
|
@ -5,4 +5,5 @@ services:
|
||||
|
||||
Rector\SOLID\:
|
||||
resource: '../src/'
|
||||
exclude: '../src/{Rector/**/*Rector.php}'
|
||||
exclude:
|
||||
- '../src/Rector/**/*Rector.php'
|
||||
|
@ -5,4 +5,5 @@ services:
|
||||
|
||||
Rector\Sensio\:
|
||||
resource: '../src/'
|
||||
exclude: '../src/{Rector/**/*Rector.php,PhpDocParser/Ast/PhpDoc/*}'
|
||||
exclude:
|
||||
- '../src/Rector/**/*Rector.php'
|
||||
|
@ -11,4 +11,6 @@ services:
|
||||
|
||||
Rector\Symfony\:
|
||||
resource: '../src/'
|
||||
exclude: '../src/{Rector/**/*Rector.php,PhpDocParser/Ast/PhpDoc/*,ValueObject/*}'
|
||||
exclude:
|
||||
- '../src/Rector/**/*Rector.php'
|
||||
- '../src/PhpDocParser/Ast/PhpDoc/*'
|
||||
|
@ -105,7 +105,7 @@ final class SymfonyContainerFactory
|
||||
}
|
||||
});
|
||||
|
||||
$containerBuilder->compile();
|
||||
$containerBuilder->compile(true);
|
||||
|
||||
// solves "You have requested a synthetic service ("kernel"). The DIC does not know how to construct this service"
|
||||
$containerBuilder->set('kernel', $kernel);
|
||||
|
@ -5,4 +5,5 @@ services:
|
||||
|
||||
Rector\SymfonyPHPUnit\:
|
||||
resource: '../src/'
|
||||
exclude: '../src/{Rector/**/*Rector.php}'
|
||||
exclude:
|
||||
- '../src/Rector/**/*Rector.php'
|
||||
|
@ -5,4 +5,7 @@ services:
|
||||
|
||||
Rector\TypeDeclaration\:
|
||||
resource: '../src/'
|
||||
exclude: '../src/{Rector/**/*Rector.php,Exception,ValueObject/*}'
|
||||
exclude:
|
||||
- '../src/Rector/**/*Rector.php'
|
||||
- '../src/Exception/*'
|
||||
- '../src/ValueObject/*'
|
||||
|
@ -6,4 +6,6 @@ services:
|
||||
|
||||
Rector\ZendToSymfony\:
|
||||
resource: '../src'
|
||||
exclude: '../src/{Rector/**/*Rector.php,ValueObject/*}'
|
||||
exclude:
|
||||
- '../src/Rector/**/*Rector.php'
|
||||
- '../src/ValueObject/*'
|
||||
|
@ -6,4 +6,5 @@ services:
|
||||
|
||||
Rector\Utils\DocumentationGenerator\:
|
||||
resource: '../src'
|
||||
exclude: '../src/ValueObject/*'
|
||||
exclude:
|
||||
- '../src/ValueObject/*'
|
||||
|
@ -6,4 +6,6 @@ services:
|
||||
|
||||
Rector\Utils\RectorGenerator\:
|
||||
resource: '../src'
|
||||
exclude: '../src/{Exception/*,ValueObject/*}'
|
||||
exclude:
|
||||
- '../src/Exception/*'
|
||||
- '../src/ValueObject/*'
|
||||
|
Loading…
x
Reference in New Issue
Block a user