forked from pehapkari/pehapkari.cz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecs.yaml
60 lines (50 loc) · 2.63 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
imports:
- { resource: 'vendor/symplify/easy-coding-standard/config/set/php71.yaml' }
- { resource: 'vendor/symplify/easy-coding-standard/config/set/clean-code.yaml' }
- { resource: 'vendor/symplify/easy-coding-standard/config/set/symplify.yaml' }
- { resource: 'vendor/symplify/easy-coding-standard/config/set/common.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
Symplify\CodingStandard\Sniffs\CleanCode\CognitiveComplexitySniff:
maxCognitiveComplexity: 8
Symplify\CodingStandard\Sniffs\CleanCode\ForbiddenParentClassSniff:
forbidden_parent_classes:
- 'Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository'
- 'Doctrine\ORM\EntityRepository'
Symplify\CodingStandard\Sniffs\DependencyInjection\NoClassInstantiationSniff:
extra_allowed_classes:
- 'setasign\Fpdi\*'
- 'Pehapkari\Provision\Data\*'
- 'App\Request\*Request'
- 'Doctrine\Common\Collections\ArrayCollection'
- 'Symfony\Component\Form\FormError'
# pre-container used classes
- 'Symplify\Autodiscovery\Util\*'
- 'Symfony\Component\Config\Resource\FileResource'
- 'Symfony\Component\Security\Csrf\CsrfToken'
parameters:
exclude_files:
- 'src/Kernel.php'
skip:
# on purpose - property order is reflected in forms in admin
Symplify\CodingStandard\Fixer\Order\PropertyOrderByComplexityFixer:
- '*Entity*'
# 3rd party contract
SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff.MissingParameterTypeHint:
- 'packages/User/src/Security/PehapkariAuthenticator.php'
- 'packages/Registration/src/Api/FakturoidClient.php'
# from symplify.yaml set
Symplify\CodingStandard\Sniffs\DependencyInjection\NoClassInstantiationSniff: ~
Symplify\CodingStandard\Sniffs\CleanCode\ForbiddenStaticFunctionSniff: ~
Symplify\CodingStandard\Sniffs\ControlStructure\SprintfOverContactSniff: ~
# mutually excludes with other set
PhpCsFixer\Fixer\Operator\UnaryOperatorSpacesFixer: ~
SlevomatCodingStandard\Sniffs\Variables\UnusedVariableSniff.UnusedVariable:
# test
- 'statie/tests/Posts/Year2017/Iterators/*.php'