forked from govCMS/scaffold-tooling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
64 lines (64 loc) · 1.72 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
parameters:
excludePaths:
- /app/vendor/*
scanDirectories:
- /app
level: 0
fileExtensions:
- php
- theme
- inc
reportUnmatchedIgnoredErrors: false
ignoreErrors:
- "#Function (.*) not found#"
- "#^Call to static method (.*) on an unknown class (.*)$#"
- "#^Static call to instance method (.*)$#"
- "#^Unsafe usage of new static\\(\\)\\.$#"
- "#^Method (.*) should return bool but return statement is missing\\.$#"
- "#Should not use node with type \"Expr_Exit\", please change the code.#"
- message: "#^Should not use function \"debug_backtrace\", please change the code\\.$#"
count: 1
path: /app/web/themes/custom/bootstrap/src/Bootstrap.php
- message: "#^Should not use function \"print_r\", please change the code\\.$#"
count: 1
path: /app/web/themes/custom/bootstrap/src/Bootstrap.php
bootstrapFiles:
- classPHPStanAliases.php
banned_code:
nodes:
- type: Expr_FuncCall
functions:
- curl_exec
- curl_multi_exec
- dd
- debug_backtrace
- dump
- escapeshellcmd
- exec
- ftp_connect
- ftp_exec
- ftp_get
- ftp_login
- ftp_nb_fput
- ftp_put
- ftp_raw
- ftp_rawlist
- passthru
- phpinfo
- popen
- posix_getpwuid
- posix_kill
- posix_mkfifo
- posix_setpgid
- posix_setsid
- posix_setuid
- posix_uname
- print_r
- proc_open
- proc_get_status
- proc_terminate
- proc_close
- proc_nice
- shell_exec
- system
- var_dump