-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
40 lines (38 loc) · 1.32 KB
/
phpstan.neon
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
includes:
- vendor/symplify/phpstan-rules/packages/cognitive-complexity/config/cognitive-complexity-services.neon
- vendor/symplify/phpstan-rules/packages/object-calisthenics/config/object-calisthenics-services.neon
parameters:
checkMissingIterableValueType: false
level: 8
paths:
- src
services:
-
class: Symplify\PHPStanRules\CognitiveComplexity\Rules\FunctionLikeCognitiveComplexityRule
tags: [phpstan.rules.rule]
arguments:
maxMethodCognitiveComplexity: 8
-
class: Symplify\PHPStanRules\CognitiveComplexity\Rules\ClassLikeCognitiveComplexityRule
tags: [phpstan.rules.rule]
arguments:
maxClassCognitiveComplexity: 50
-
class: Symplify\PHPStanRules\ObjectCalisthenics\Rules\NoShortNameRule
tags: [phpstan.rules.rule]
arguments:
minNameLength: 3
allowedShortNames: ['id']
-
class: Symplify\PHPStanRules\ObjectCalisthenics\Rules\TooLongClassLikeRule
tags: [phpstan.rules.rule]
arguments:
maxClassLikeLength: 300
-
class: Symplify\PHPStanRules\ObjectCalisthenics\Rules\NoSetterClassMethodRule
tags: [phpstan.rules.rule]
arguments:
allowedSetterClasses: []
-
class: Symplify\PHPStanRules\ObjectCalisthenics\Rules\NoElseAndElseIfRule
tags: [phpstan.rules.rule]