2017-07-16 20:44:05 +02:00
|
|
|
includes:
|
2017-11-18 00:03:19 +01:00
|
|
|
- vendor/symplify/easy-coding-standard/config/psr2.neon
|
|
|
|
- vendor/symplify/easy-coding-standard/config/php71.neon
|
|
|
|
- vendor/symplify/easy-coding-standard/config/symplify.neon
|
2017-08-09 17:31:53 +02:00
|
|
|
- vendor/symplify/easy-coding-standard/config/common.neon
|
2018-01-06 04:49:35 -02:00
|
|
|
- vendor/symplify/easy-coding-standard/config/clean-code.neon
|
2017-08-04 08:20:18 +02:00
|
|
|
|
|
|
|
checkers:
|
2017-08-12 13:34:40 +02:00
|
|
|
# Metrics
|
2017-08-06 19:37:55 +02:00
|
|
|
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
|
2017-08-06 19:37:55 +02:00
|
|
|
PHP_CodeSniffer\Standards\Generic\Sniffs\Metrics\NestingLevelSniff:
|
2017-08-07 15:53:52 +02:00
|
|
|
absoluteNestingLevel: 3
|
2017-08-06 19:37:55 +02:00
|
|
|
|
2017-08-20 00:51:00 +02:00
|
|
|
# Class should be Final or Abstract
|
|
|
|
- SlamCsFixer\FinalInternalClassFixer
|
|
|
|
|
2017-09-01 00:31:12 +02:00
|
|
|
Symplify\CodingStandard\Sniffs\DependencyInjection\NoClassInstantiationSniff:
|
|
|
|
extraAllowedClasses:
|
2017-09-03 14:37:36 +02:00
|
|
|
- 'PhpParser\Node\*'
|
2017-09-01 00:31:12 +02:00
|
|
|
- 'PhpParser\Comment\Doc'
|
2017-12-21 23:18:33 +01:00
|
|
|
- 'PhpParser\NodeTraverser'
|
2017-09-09 20:33:01 +02:00
|
|
|
- 'Rector\DeprecationExtractor\Deprecation\*'
|
2017-11-05 20:36:55 +01:00
|
|
|
- 'Rector\BetterReflection\SourceLocator\Located\LocatedSource'
|
2017-11-23 16:33:08 +01:00
|
|
|
- 'phpDocumentor\Reflection\Types\*'
|
2017-09-01 00:31:12 +02:00
|
|
|
|
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:
|
2018-01-12 20:40:07 +01:00
|
|
|
exclude_checkers:
|
|
|
|
# bugged in php-cs-fixer 2.10
|
|
|
|
- PhpCsFixer\Fixer\PhpUnit\PhpUnitTestAnnotationFixer
|
|
|
|
|
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-12-26 22:50:47 +01:00
|
|
|
- */packages/NodeTypeResolver/tests/PerNodeCallerTypeResolver/**Test.php
|
2017-10-26 10:25:14 +02:00
|
|
|
- */packages/NodeTypeResolver/**/PerNodeTypeResolver/**TypeResolver.php
|
2017-12-27 02:05:27 +01:00
|
|
|
- */packages/NodeTypeResolver/**/PerNodeTypeResolver/**TypeResolver/*Test.php
|
2018-01-07 13:20:42 +01:00
|
|
|
- packages/BetterReflection/src/Reflector/SmartClassReflector.php
|
2017-09-14 12:54:02 +02:00
|
|
|
SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff:
|
|
|
|
# covariant types
|
|
|
|
- */packages/NodeValueResolver/src/PerNodeValueResolver/*ValueResolver.php
|
2017-12-17 22:41:27 +01:00
|
|
|
# missing mixed
|
|
|
|
- src/Node/NodeFactory.php
|
|
|
|
- packages/NodeTypeResolver/tests/AbstractNodeTypeResolverTest.php
|
2017-11-06 14:54:16 +01:00
|
|
|
PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\EmptyStatementSniff:
|
|
|
|
# intentionally
|
|
|
|
- packages/BetterReflection/src/Reflector/SmartClassReflector.php
|
2017-12-18 00:59:05 +01:00
|
|
|
|
|
|
|
skip_codes:
|
|
|
|
SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff.MissingParameterTypeHint:
|
|
|
|
# forcing "mixed" types
|
|
|
|
- src/Node/NodeFactory.php
|
|
|
|
- packages/NodeTypeResolver/tests/AbstractNodeTypeResolverTest.php
|
2017-12-21 19:14:22 +01:00
|
|
|
|
|
|
|
# empty arguments passing
|
2018-01-06 04:49:35 -02:00
|
|
|
- PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions\ValidDefaultValueSniff.NotAtEnd
|