forked from brotkrueml/typo3-matomo-integration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
39 lines (37 loc) · 1.25 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
includes:
- phpstan.baseline.neon
- .Build/vendor/symplify/phpstan-rules/config/array-rules.neon
- .Build/vendor/symplify/phpstan-rules/config/forbidden-static-rules.neon
- .Build/vendor/symplify/phpstan-rules/config/regex-rules.neon
- .Build/vendor/symplify/phpstan-rules/config/size-rules.neon
parameters:
phpVersion: 80000
level: 8
paths:
- Classes
ignoreErrors:
- '#Class has a static method must so must contains "Static" in its name#'
services:
-
class: Symplify\PHPStanRules\CognitiveComplexity\Rules\ClassLikeCognitiveComplexityRule
tags: [phpstan.rules.rule]
arguments:
maxClassCognitiveComplexity: 13
-
class: Symplify\PHPStanRules\Rules\ForbiddenFuncCallRule
tags: [phpstan.rules.rule]
arguments:
forbiddenFunctions:
- eval
- dump
- die
- compact
- var_dump
-
class: Symplify\PHPStanRules\Rules\ForbiddenNodeRule
tags: [phpstan.rules.rule]
arguments:
forbiddenNodes:
- PhpParser\Node\Expr\Empty_
- PhpParser\Node\Stmt\Switch_
- PhpParser\Node\Expr\ErrorSuppress