forked from tomasnorre/crawler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
44 lines (39 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
41
42
43
44
includes:
- phpstan-baseline.neon
# for cognitive rules
#- .Build/vendor/symplify/phpstan-rules/config/services/services.neon
#- .Build/vendor/symplify/phpstan-rules/packages/cognitive-complexity/config/cognitive-complexity-rules.neon
parameters:
level: max
paths:
- "Classes/"
- "Configuration/"
excludes_analyse:
- Tests/Acceptance
- Classes/Worker/CrawlerWorker.php
- Classes/CrawlStrategy/GuzzleExecutionStrategy.php
inferPrivatePropertyTypeFromConstructor: true
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false
services:
-
class: Symplify\PHPStanRules\CognitiveComplexity\Rules\FunctionLikeCognitiveComplexityRule
tags: [phpstan.rules.rule]
arguments:
maxMethodCognitiveComplexity: 60
-
class: Symplify\PHPStanRules\CognitiveComplexity\Rules\ClassLikeCognitiveComplexityRule
tags: [phpstan.rules.rule]
arguments:
maxClassCognitiveComplexity: 60
-
class: Symplify\PHPStanRules\Rules\ForbiddenFuncCallRule
tags: [phpstan.rules.rule]
arguments:
forbiddenFunctions:
- eval
- dump
- die
- d
- compact
- var_dump