rector/easy-coding-standard.neon

67 lines
3.1 KiB
Plaintext
Raw Normal View History

2017-07-16 20:44:05 +02:00
includes:
2017-08-12 13:34:40 +02:00
- 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
2017-08-04 08:20:18 +02:00
- vendor/symplify/easy-coding-standard/config/php71-checkers.neon
2017-08-12 13:34:40 +02:00
- 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
2017-08-04 08:20:18 +02:00
checkers:
# Slevomat
2017-08-06 23:11:50 +02:00
SlevomatCodingStandard\Sniffs\Namespaces\ReferenceUsedNamesOnlySniff:
allowPartialUses: false
2017-08-26 02:10:25 +02:00
SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff:
enableEachParameterAndReturnInspection: true
2017-08-12 13:34:40 +02:00
# Metrics
PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LineLengthSniff:
absoluteLineLimit: 120
PHP_CodeSniffer\Standards\Generic\Sniffs\Metrics\CyclomaticComplexitySniff:
2017-08-06 23:11:50 +02:00
absoluteComplexity: 5
PHP_CodeSniffer\Standards\Generic\Sniffs\Metrics\NestingLevelSniff:
2017-08-07 15:53:52 +02:00
absoluteNestingLevel: 3
# Class should be Final or Abstract
- SlamCsFixer\FinalInternalClassFixer
Symplify\CodingStandard\Sniffs\DependencyInjection\NoClassInstantiationSniff:
extraAllowedClasses:
2017-09-03 14:37:36 +02:00
- 'PhpParser\Node\*'
- 'PhpParser\Comment\Doc'
- 'Rector\DeprecationExtractor\Deprecation\*'
2017-10-20 13:59:38 +02:00
- 'Rector\BetterReflection\SourceLocator\**'
2017-10-18 14:52:18 +02:00
Symplify\CodingStandard\Fixer\Naming\PropertyNameMatchingTypeFixer:
extra_skipped_classes:
- 'PhpParser\PrettyPrinter\Standard'
- 'PhpParser\Node'
2017-08-09 17:37:49 +02:00
parameters:
2017-08-12 13:34:40 +02:00
exclude_checkers:
2017-10-18 14:52:18 +02:00
# excluded from symfony-checkers.neon
2017-08-12 13:34:40 +02:00
- PhpCsFixer\Fixer\PhpTag\BlankLineAfterOpeningTagFixer
- PhpCsFixer\Fixer\Operator\NewWithBracesFixer
- PhpCsFixer\Fixer\Operator\UnaryOperatorSpacesFixer
- PhpCsFixer\Fixer\Phpdoc\PhpdocAlignFixer
2017-08-21 12:37:43 +02:00
- PhpCsFixer\Fixer\Phpdoc\PhpdocSummaryFixer
- PhpCsFixer\Fixer\Comment\SingleLineCommentStyleFixer
- PhpCsFixer\Fixer\Phpdoc\PhpdocToCommentFixer
2017-08-12 13:34:40 +02:00
2017-08-09 17:37:49 +02:00
skip:
2017-08-12 13:34:40 +02:00
Symplify\CodingStandard\Fixer\Php\ClassStringToClassConstantFixer:
2017-08-24 12:13:51 +02:00
# classes might not exist
2017-09-02 15:12:44 +02:00
- */src/Rector/Contrib/*/*Rector.php
2017-10-21 09:10:11 +02:00
- */src/Rector/Contrib/**/Helper/**.php
2017-10-04 08:57:48 +02:00
- packages/NodeTypeResolver/src/NodeVisitor/TypeResolver.php
2017-11-02 13:04:25 +01:00
- packages/NodeTypeResolver/tests/NodeCallerTypeResolver/**Test.php
2017-10-20 01:42:13 +02:00
- src/Builder/Contrib/Nette/RouterFactoryClassBuilder.php
2017-10-26 10:25:14 +02:00
- */packages/NodeTypeResolver/**/PerNodeTypeResolver/**TypeResolver.php
- */packages/NodeTypeResolver/**/PerNodeTypeResolver/**TypeResolver/Test.php
2017-09-14 12:54:02 +02:00
SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff:
# covariant types
- */packages/NodeValueResolver/src/PerNodeValueResolver/*ValueResolver.php
Symplify\CodingStandard\Sniffs\DependencyInjection\NoClassInstantiationSniff:
2017-10-03 21:59:14 +02:00
# test file
- tests/Rector/Contrib/Nette/Routing/BootstrapToRouterFactoryRector/Wrong/bootstrap.php