mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
66 lines
3.1 KiB
Plaintext
66 lines
3.1 KiB
Plaintext
includes:
|
|
- vendor/symplify/easy-coding-standard/config/symfony-checkers.neon
|
|
- vendor/symplify/easy-coding-standard/config/symfony-risky-checkers.neon
|
|
- vendor/symplify/easy-coding-standard/config/php70-checkers.neon
|
|
- vendor/symplify/easy-coding-standard/config/php71-checkers.neon
|
|
- vendor/symplify/easy-coding-standard/config/symplify-checkers.neon
|
|
- vendor/symplify/easy-coding-standard/config/common.neon
|
|
- vendor/symplify/easy-coding-standard/config/spaces.neon
|
|
|
|
checkers:
|
|
# Slevomat
|
|
SlevomatCodingStandard\Sniffs\Namespaces\ReferenceUsedNamesOnlySniff:
|
|
allowPartialUses: false
|
|
SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff:
|
|
enableEachParameterAndReturnInspection: true
|
|
|
|
# Metrics
|
|
PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LineLengthSniff:
|
|
absoluteLineLimit: 120
|
|
PHP_CodeSniffer\Standards\Generic\Sniffs\Metrics\CyclomaticComplexitySniff:
|
|
absoluteComplexity: 5
|
|
PHP_CodeSniffer\Standards\Generic\Sniffs\Metrics\NestingLevelSniff:
|
|
absoluteNestingLevel: 3
|
|
|
|
# Class should be Final or Abstract
|
|
- SlamCsFixer\FinalInternalClassFixer
|
|
|
|
Symplify\CodingStandard\Sniffs\DependencyInjection\NoClassInstantiationSniff:
|
|
extraAllowedClasses:
|
|
- 'PhpParser\Node\*'
|
|
- 'PhpParser\Comment\Doc'
|
|
- 'Rector\DeprecationExtractor\Deprecation\*'
|
|
|
|
parameters:
|
|
exclude_checkers:
|
|
# node style... add options to exclude naming, allow fnmatch as for New...Fixer
|
|
- Symplify\CodingStandard\Fixer\Naming\PropertyNameMatchingTypeFixer
|
|
# conflicting checkers
|
|
- PhpCsFixer\Fixer\ControlStructure\YodaStyleFixer
|
|
# Excluded from symfony-checkers.neon
|
|
- PhpCsFixer\Fixer\PhpTag\BlankLineAfterOpeningTagFixer
|
|
- PhpCsFixer\Fixer\Operator\NewWithBracesFixer
|
|
- PhpCsFixer\Fixer\Operator\UnaryOperatorSpacesFixer
|
|
- PhpCsFixer\Fixer\Phpdoc\PhpdocAlignFixer
|
|
- PhpCsFixer\Fixer\Phpdoc\PhpdocSummaryFixer
|
|
- PhpCsFixer\Fixer\Comment\SingleLineCommentStyleFixer
|
|
- PhpCsFixer\Fixer\Phpdoc\PhpdocToCommentFixer
|
|
|
|
skip:
|
|
Symplify\CodingStandard\Fixer\Php\ClassStringToClassConstantFixer:
|
|
# classes might not exist
|
|
- */src/Rector/Contrib/*/*Rector.php
|
|
- packages/DeprecationExtractor/tests/Rector/RectorFactoryTest.php
|
|
PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LineLengthSniff:
|
|
# long FQN classes that might not exist
|
|
- src/Rector/Contrib/Symfony/FrameworkBundleClassReplacementsRector.php
|
|
Symplify\CodingStandard\Sniffs\Classes\EqualInterfaceImplementationSniff:
|
|
# empty parent interface, disable for now
|
|
- packages/DeprecationExtractor/src/Deprecation/ClassMethodDeprecation.php
|
|
Symplify\CodingStandard\Sniffs\Debug\CommentedOutCodeSniff:
|
|
# false positive
|
|
- packages/NodeTypeResolver/src/NodeVisitor/TypeResolver.php
|
|
SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff:
|
|
# covariant types
|
|
- */packages/NodeValueResolver/src/PerNodeValueResolver/*ValueResolver.php
|