-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathphpstan.neon
More file actions
33 lines (31 loc) · 827 Bytes
/
Copy pathphpstan.neon
File metadata and controls
33 lines (31 loc) · 827 Bytes
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
includes:
- phpstan.baseline.neon
parameters:
phpVersion: 80200
level: 8
paths:
- Classes
treatPhpDocTypesAsCertain: false
cognitive_complexity:
class: 20
function: 10
services:
-
class: Symplify\PHPStanRules\Rules\ForbiddenFuncCallRule
tags: [phpstan.rules.rule]
arguments:
forbiddenFunctions:
- eval
- dump
- die
- compact
- var_dump
- var_export
-
class: Symplify\PHPStanRules\Rules\ForbiddenNodeRule
tags: [phpstan.rules.rule]
arguments:
forbiddenNodes:
- PhpParser\Node\Expr\Empty_
- PhpParser\Node\Stmt\Switch_
- PhpParser\Node\Expr\ErrorSuppress