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\*' - 'Rector\Reporting\FileDiff' - 'Rector\RectorDefinition\*' - 'PHPStan\Analyser\Scope' - 'PhpParser\NodeVisitor\NameResolver' Symplify\CodingStandard\Fixer\Naming\PropertyNameMatchingTypeFixer: extra_skipped_classes: - 'PhpParser\PrettyPrinter\Standard' - 'PhpParser\Node' Symplify\CodingStandard\Sniffs\Naming\ClassNameSuffixByParentSniff: extraParentTypesToSuffixes: - 'Rector' - 'NodeVisitorAbstract' parameters: exclude_files: - '*tests/*Source/*.php' skip: Symplify\CodingStandard\Fixer\Php\ClassStringToClassConstantFixer: # classes might not exist - 'bin/bootstrap.php' - '*/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' - 'tests/NodeAnalyzer/ClassLikeAnalyzerTest.php' - 'tests/NodeValueResolver/ConstExprEvaluatorFactoryTest.php' - 'src/Rector/AbstractPHPUnitRector.php' - 'src/Rector/Class_/ParentClassToTraitsRector.php' # example in description - 'src/Rector/Assign/PropertyAssignToMethodCallRector.php' - 'src/Rector/Constant/ClassConstantReplacerRector.php' - 'src/Rector/Property/PropertyNameReplacerRector.php' - 'src/Rector/Annotation/AnnotationReplacerRector.php' - 'src/Rector/Argument/ArgumentAdderRector.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' Symplify\CodingStandard\Fixer\Naming\PropertyNameMatchingTypeFixer: - 'packages/NodeTypeResolver/src/PHPStan/Scope/NodeScopeResolver.php' Symplify\CodingStandard\Sniffs\Naming\ClassNameSuffixByParentSniff: # hidden API - 'src/Rector/AbstractRector.php'