forked from qdequippe/friendsofphp-org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecs.yml
26 lines (22 loc) · 1.08 KB
/
ecs.yml
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
imports:
- { resource: 'vendor/symplify/easy-coding-standard/config/psr2.yml' }
- { resource: 'vendor/symplify/easy-coding-standard/config/php71.yml' }
- { resource: 'vendor/symplify/easy-coding-standard/config/clean-code.yml' }
- { resource: 'vendor/symplify/easy-coding-standard/config/symplify.yml' }
- { resource: 'vendor/symplify/easy-coding-standard/config/common.yml' }
- { resource: 'vendor/symplify/easy-coding-standard/config/psr12.yml' }
services:
Symplify\CodingStandard\Sniffs\CleanCode\CognitiveComplexitySniff:
maxCognitiveComplexity: 8
# class should be Abstact or Final
SlamCsFixer\FinalInternalClassFixer: ~
parameters:
exclude_checkers:
# mutually conflicting
- 'PhpCsFixer\Fixer\Operator\UnaryOperatorSpacesFixer'
- 'PhpCsFixer\Fixer\PhpTag\BlankLineAfterOpeningTagFixer'
- 'Symplify\CodingStandard\Sniffs\DependencyInjection\NoClassInstantiationSniff'
skip:
Symplify\CodingStandard\Sniffs\CleanCode\ForbiddenStaticFunctionSniff:
# helper class
- 'src/Utils/Arrays.php'