mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 14:27:14 +01:00
57 lines
2.6 KiB
YAML
57 lines
2.6 KiB
YAML
imports:
|
|
- { resource: 'vendor/symplify/easy-coding-standard/config/psr2.yml' }
|
|
- { resource: 'vendor/symplify/easy-coding-standard/config/php71.yml' }
|
|
- { resource: 'vendor/symplify/easy-coding-standard/config/symplify.yml' }
|
|
- { resource: 'vendor/symplify/easy-coding-standard/config/common.yml' }
|
|
- { resource: 'vendor/symplify/easy-coding-standard/config/clean-code.yml' }
|
|
|
|
services:
|
|
Symplify\CodingStandard\Sniffs\CleanCode\CognitiveComplexitySniff:
|
|
maxCognitiveComplexity: 8
|
|
|
|
# Class should be Final or Abstract
|
|
SlamCsFixer\FinalInternalClassFixer: ~
|
|
|
|
Symplify\CodingStandard\Sniffs\DependencyInjection\NoClassInstantiationSniff:
|
|
extraAllowedClasses:
|
|
- 'PhpParser\Node\*'
|
|
- 'Symplify\PackageBuilder\Reflection\*'
|
|
- 'PhpParser\Comment\Doc'
|
|
- 'PhpParser\NodeTraverser'
|
|
- 'Rector\DeprecationExtractor\Deprecation\*'
|
|
- 'Roave\BetterReflection\SourceLocator\Located\LocatedSource'
|
|
- 'Rector\Reporting\FileDiff'
|
|
- 'Rector\RectorDefinition\*'
|
|
|
|
Symplify\CodingStandard\Fixer\Naming\PropertyNameMatchingTypeFixer:
|
|
extra_skipped_classes:
|
|
- 'PhpParser\PrettyPrinter\Standard'
|
|
- 'PhpParser\Node'
|
|
|
|
Symplify\CodingStandard\Sniffs\Naming\ClassNameSuffixByParentSniff:
|
|
extraParentTypesToSuffixes:
|
|
- 'Rector'
|
|
|
|
parameters:
|
|
exclude_files:
|
|
- '*tests/*Source/*.php'
|
|
|
|
skip:
|
|
Symplify\CodingStandard\Fixer\Php\ClassStringToClassConstantFixer:
|
|
# classes might not exist
|
|
- '*/packages/*/src/Rector/*Rector.php'
|
|
- 'src/Rector/MethodCall/MethodCallToAnotherMethodCallWithArgumentsRector.php'
|
|
- 'src/Rector/Constant/RenameClassConstantsUseToStringsRector.php'
|
|
- '*/packages/NodeTypeResolver/**/PerNodeTypeResolver/**TypeResolver.php'
|
|
- '*/packages/NodeTypeResolver/**/PerNodeTypeResolver/**TypeResolver/*Test.php'
|
|
- 'packages/BetterReflection/src/Reflector/SmartClassReflector.php'
|
|
- 'src/Rector/AbstractPHPUnitRector.php'
|
|
- 'src/Rector/Class_/ParentClassToTraitsRector.php'
|
|
|
|
# empty arguments passing
|
|
PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions\ValidDefaultValueSniff.NotAtEnd:
|
|
- 'packages/PHPUnit/src/Rector/SpecificMethod/AssertTrueFalseToSpecificMethodRector.php'
|
|
|
|
Symplify\CodingStandard\Sniffs\CleanCode\ForbiddenStaticFunctionSniff:
|
|
- 'src/Configuration/Rector/Guard/RecipeGuard.php'
|
|
- 'src/Configuration/Rector/*Recipe.php' |