This repository has been archived by the owner on Jul 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
/
ecs.yaml
42 lines (37 loc) · 1.99 KB
/
ecs.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
imports:
- { resource: 'vendor/symplify/easy-coding-standard/config/symfony.yml' }
- { resource: 'vendor/symplify/easy-coding-standard/config/php70.yml' }
- { resource: 'vendor/symplify/easy-coding-standard/config/php71.yml' }
- { resource: 'vendor/symplify/easy-coding-standard/config/common.yml' }
- { resource: 'vendor/symplify/easy-coding-standard/config/symplify.yml' }
services:
# Slevomat
SlevomatCodingStandard\Sniffs\Classes\UnusedPrivateElementsSniff: ~
SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff:
enableEachParameterAndReturnInspection: true
SlevomatCodingStandard\Sniffs\Namespaces\ReferenceUsedNamesOnlySniff:
allowPartialUses: false
# Metrics
PHP_CodeSniffer\Standards\Generic\Sniffs\Metrics\CyclomaticComplexitySniff:
absoluteComplexity: 4
PHP_CodeSniffer\Standards\Generic\Sniffs\Metrics\NestingLevelSniff:
absoluteNestingLevel: 3
parameters:
skip:
Symplify\CodingStandard\Fixer\LineLength\LineLengthFixer:
- 'src/Posts/Year2018/Cart/Domain/Cart.php'
# from symplify.yml set
Symplify\CodingStandard\Fixer\Naming\PropertyNameMatchingTypeFixer: ~
Symplify\CodingStandard\Sniffs\Naming\InterfaceNameSniff: ~
Symplify\CodingStandard\Sniffs\Naming\AbstractClassNameSniff: ~
Symplify\CodingStandard\Sniffs\Property\DynamicPropertySniff: ~
Symplify\CodingStandard\Sniffs\DependencyInjection\NoClassInstantiationSniff: ~
Symplify\CodingStandard\Sniffs\CleanCode\ForbiddenStaticFunctionSniff: ~
# from symfony.yml set
PhpCsFixer\Fixer\PhpTag\BlankLineAfterOpeningTagFixer: ~
PhpCsFixer\Fixer\Operator\NewWithBracesFixer: ~
PhpCsFixer\Fixer\Operator\UnaryOperatorSpacesFixer: ~
PhpCsFixer\Fixer\Phpdoc\PhpdocAlignFixer: ~
PhpCsFixer\Fixer\ClassNotation\ProtectedToPrivateFixer: ~
PhpCsFixer\Fixer\ControlStructure\YodaStyleFixer: ~
PhpCsFixer\Fixer\Phpdoc\PhpdocSeparationFixer: ~