-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.dist.neon
More file actions
66 lines (58 loc) · 1.88 KB
/
phpstan.dist.neon
File metadata and controls
66 lines (58 loc) · 1.88 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
includes:
- ./vendor/larastan/larastan/extension.neon
- ./vendor/ekino/phpstan-banned-code/extension.neon
- ./vendor/nesbot/carbon/extension.neon
- ./vendor/phpstan/phpstan-deprecation-rules/rules.neon
- ./vendor/phpstan/phpstan-mockery/extension.neon
parameters:
paths:
- src
level: 5
excludePaths:
- %rootDir%/../../../database/*/*.php
ignoreErrors:
universalObjectCratesClasses:
- Laravel\Nova\Fields\ActionFields
banned_code:
nodes:
# enable detection of echo
-
type: Stmt_Echo
functions: null
# enable detection of eval
-
type: Expr_Eval
functions: null
# enable detection of die/exit
-
type: Expr_Exit
functions: null
# enable detection of a set of functions
-
type: Expr_FuncCall
functions:
- dd
- ddd
- debug_backtrace
- dump
- exec
- passthru
- phpinfo
- print_r
- proc_open
- ray
- shell_exec
- system
- var_dump
# enable detection of print statements
-
type: Expr_Print
functions: null
# enable detection of shell execution by backticks
-
type: Expr_ShellExec
functions: null
# enable detection of `use Tests\Foo\Bar` in a non-test file
use_from_tests: true
# errors emitted by the extension are non-ignorable by default, so they cannot accidentally be put into the baseline.
non_ignorable: true