forked from TomasVotruba/tomasvotruba.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheasy-coding-standard.yml
29 lines (23 loc) · 1.17 KB
/
easy-coding-standard.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
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/common.yml' }
- { resource: 'vendor/symplify/easy-coding-standard/config/symplify.yml' }
services:
SlevomatCodingStandard\Sniffs\Classes\UnusedPrivateElementsSniff:
SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff:
enableEachParameterAndReturnInspection: true
# Complexity limits
PHP_CodeSniffer\Standards\Generic\Sniffs\Metrics\CyclomaticComplexitySniff:
absoluteComplexity: 4
PHP_CodeSniffer\Standards\Generic\Sniffs\Metrics\NestingLevelSniff:
absoluteNestingLevel: 3
parameters:
skip:
SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff.UselessDocComment: ~
Symplify\CodingStandard\Sniffs\DependencyInjection\NoClassInstantiationSniff:
- '*/src/Posts/Year2017/Ast/*'
- '*/src/Statie/Generator/PostFileSorter.php'
exclude_checkers:
# resolve later
- 'Symplify\CodingStandard\Sniffs\CleanCode\ForbiddenStaticFunctionSniff'