-
Notifications
You must be signed in to change notification settings - Fork 12
/
ecs.yml
32 lines (31 loc) · 1.8 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
27
28
29
30
31
32
# Symplify/EasyCodingStandard
imports:
- { resource: 'vendor/symplify/easy-coding-standard/config/symfony.yml' }
services:
# Make sure That @param, @var, @return and @throw Types Exist
Symplify\CodingStandard\Sniffs\Commenting\AnnotationTypeExistsSniff: ~
# Make @param, @return and @var Format United
Symplify\CodingStandard\Fixer\Commenting\ParamReturnAndVarTagMalformsFixer: ~
# Remove // end of ... Legacy Comments
Symplify\CodingStandard\Fixer\Commenting\RemoveEndOfFunctionCommentFixer: ~
# Indexed PHP arrays should have 1 item per line
Symplify\CodingStandard\Fixer\ArrayNotation\StandaloneLineInMultilineArrayFixer: ~
# Property name should match its key, if possible
Symplify\CodingStandard\Fixer\Naming\PropertyNameMatchingTypeFixer: ~
# Array property should have default value, to prevent undefined array issues
Symplify\CodingStandard\Fixer\Property\ArrayPropertyDefaultValueFixer: ~
# Constant should have docblock comment
Symplify\CodingStandard\Sniffs\Commenting\VarConstantCommentSniff: ~
# There should not be comments with valid code
Symplify\CodingStandard\Sniffs\Debug\CommentedOutCodeSniff: ~
# Debug functions should not be left in the code
Symplify\CodingStandard\Sniffs\Debug\DebugFunctionCallSniff: ~
# Cecheck commments
SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclaration: ~
# Enforces configurable number of lines before first content (description or annotation)
SlevomatCodingStandard\Sniffs\Commenting\DocCommentSpacing : ~
# check for forgotten "git merge" conflicts
PHP_CodeSniffer\Standards\Generic\Sniffs\VersionControl\GitMergeConflictSniff: ~
# Check Complexity
Symplify\CodingStandard\Sniffs\CleanCode\CognitiveComplexitySniff:
maxCognitiveComplexity: 8