mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 05:48:21 +01:00
54 lines
2.3 KiB
YAML
54 lines
2.3 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: 6
|
|
|
|
# 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\Fixer\Naming\ClassNameSuffixByParentFixer:
|
|
parent_types_to_suffixes:
|
|
'*Rector': 'Rector'
|
|
|
|
parameters:
|
|
exclude_files:
|
|
- '*tests/*Source/*.php'
|
|
|
|
skip:
|
|
Symplify\CodingStandard\Fixer\Php\ClassStringToClassConstantFixer:
|
|
# classes might not exist
|
|
- '*/packages/*/src/Rector/*Rector.php'
|
|
- '*/packages/NodeTypeResolver/**/PerNodeTypeResolver/**TypeResolver.php'
|
|
- '*/packages/NodeTypeResolver/**/PerNodeTypeResolver/**TypeResolver/*Test.php'
|
|
- 'packages/BetterReflection/src/Reflector/SmartClassReflector.php'
|
|
- 'src/Rector/AbstractPHPUnitRector.php'
|
|
|
|
# empty arguments passing
|
|
PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions\ValidDefaultValueSniff.NotAtEnd:
|
|
- 'packages/PHPUnit/src/Rector/SpecificMethod/AssertTrueFalseToSpecificMethodRector.php'
|
|
|
|
Symplify\CodingStandard\Sniffs\CleanCode\CognitiveComplexitySniff:
|
|
# @todo needs refactoring to Broker pattern
|
|
- 'packages/BetterReflection/src/Reflector/SmartClassReflector.php' |