-
-
Notifications
You must be signed in to change notification settings - Fork 84
/
phpstan.neon
48 lines (42 loc) · 1.3 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
45
46
47
48
includes:
- phpstan-baseline.neon
# For cognitive rules - These a include from the phpstan/extension-installer
#- .Build/vendor/symplify/phpstan-rules/config/packages/cognitive-complexity/cognitive-complexity-services.neon
#- .Build/vendor/symplify/phpstan-rules/config/services/services.neon
parameters:
level: 8
paths:
- "Classes/"
- "Configuration/"
excludePaths:
- Tests/Acceptance
- Classes/Worker/CrawlerWorker.php
- Classes/CrawlStrategy/GuzzleExecutionStrategy.php
inferPrivatePropertyTypeFromConstructor: true
ignoreErrors:
-
identifier: missingType.iterableValue
-
identifier: missingType.generics
# composer require tomasvotruba/cognitive-complexity --dev
cognitive_complexity:
class: 35
function: 21
# composer require tomasvotruba/type-coverage --dev
type_coverage:
return_type: 81
param_type: 79
property_type: 79
constant: 0
services:
-
class: Symplify\PHPStanRules\Rules\ForbiddenFuncCallRule
tags: [phpstan.rules.rule]
arguments:
forbiddenFunctions:
- eval
- dump
- die
- d
- compact
- var_dump