-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheasy-coding-standard.yaml
62 lines (54 loc) · 2.91 KB
/
easy-coding-standard.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
imports:
- { resource: 'vendor/symplify/easy-coding-standard/config/set/symfony.yaml' }
- { resource: 'vendor/symplify/easy-coding-standard/config/set/symfony-risky.yaml' }
- { resource: 'vendor/symplify/easy-coding-standard/config/set/php71.yaml' }
- { resource: 'vendor/symplify/easy-coding-standard/config/set/psr12.yaml' }
services:
# Slevomat
SlevomatCodingStandard\Sniffs\Classes\UnusedPrivateElementsSniff: ~
SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff:
enableEachParameterAndReturnInspection: true
SlevomatCodingStandard\Sniffs\Namespaces\ReferenceUsedNamesOnlySniff:
allowPartialUses: false
allowFullyQualifiedGlobalClasses: true
allowFullyQualifiedGlobalFunctions: true
allowFullyQualifiedGlobalConstants: true
# Metrics
PHP_CodeSniffer\Standards\Generic\Sniffs\Metrics\CyclomaticComplexitySniff:
absoluteComplexity: 4
PHP_CodeSniffer\Standards\Generic\Sniffs\Metrics\NestingLevelSniff:
absoluteNestingLevel: 3
# PhpCsFixer
PhpCsFixer\Fixer\PhpTag\LinebreakAfterOpeningTagFixer: ~
PhpCsFixer\Fixer\Alias\MbStrFunctionsFixer: ~
PhpCsFixer\Fixer\ClassNotation\NoPhp4ConstructorFixer: ~
PhpCsFixer\Fixer\FunctionNotation\NoUnreachableDefaultArgumentValueFixer: ~
PhpCsFixer\Fixer\ControlStructure\NoUselessElseFixer: ~
PhpCsFixer\Fixer\ReturnNotation\NoUselessReturnFixer: ~
PhpCsFixer\Fixer\Import\OrderedImportsFixer: ~
PhpCsFixer\Fixer\PhpUnit\PhpUnitStrictFixer: ~
PhpCsFixer\Fixer\Phpdoc\PhpdocOrderFixer: ~
PhpCsFixer\Fixer\Strict\StrictComparisonFixer: ~
PhpCsFixer\Fixer\Strict\StrictParamFixer: ~
PhpCsFixer\Fixer\Comment\HeaderCommentFixer:
header: |
This file is part of the `idea` project.
(c) Aula de Software Libre de la UCO <[email protected]>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
separate: 'both'
parameters:
cache_directory: 'var/cache/ecs_cache'
exclude_files:
- 'src/Kernel.php'
- 'src/Migrations/*'
skip:
SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff.MissingTraversableParameterTypeHintSpecification: ~
SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff.MissingTraversableReturnTypeHintSpecification: ~
Symplify\CodingStandard\Sniffs\Architecture\ExplicitExceptionSniff: ~
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: ~