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
|
2017-08-15 13:26:00 +02:00
|
|
|
- vendor/symplify/easy-coding-standard/config/symfony-risky-checkers.neon
|
2017-08-06 18:51:23 +02:00
|
|
|
- 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
|
2017-08-09 17:31:53 +02:00
|
|
|
- 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:
|
2017-08-06 19:37:55 +02:00
|
|
|
# Slevomat
|
2017-08-06 23:11:50 +02:00
|
|
|
SlevomatCodingStandard\Sniffs\Namespaces\ReferenceUsedNamesOnlySniff:
|
|
|
|
allowPartialUses: false
|
2017-08-26 02:10:25 +02:00
|
|
|
- PhpCsFixer\Fixer\FunctionNotation\VoidReturnFixer
|
|
|
|
SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff:
|
|
|
|
enableEachParameterAndReturnInspection: true
|
2017-08-06 19:37:55 +02:00
|
|
|
|
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-08-09 17:37:49 +02:00
|
|
|
parameters:
|
2017-08-12 13:34:40 +02:00
|
|
|
exclude_checkers:
|
2017-08-15 01:02:23 +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
|
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
|
|
|
|
- */src/Rector/Contrib/Nette/*Rector.php
|
2017-08-31 18:24:09 +02:00
|
|
|
- src/Rector/Contrib/Symfony/StringFormTypeToClassRector.php
|
2017-08-12 13:34:40 +02:00
|
|
|
Symplify\CodingStandard\Sniffs\Debug\CommentedOutCodeSniff:
|
|
|
|
# examples of code to be found
|
2017-08-15 15:17:17 +02:00
|
|
|
- src/Rector/Contrib/Symfony/GetterToPropertyRector.php
|
2017-08-20 17:27:19 +02:00
|
|
|
SlevomatCodingStandard\Sniffs\Classes\UnusedPrivateElementsSniff:
|
|
|
|
# will be used soon
|
2017-08-20 17:37:57 +02:00
|
|
|
- packages/NodeTypeResolver/src/TypeContext.php
|