-
Notifications
You must be signed in to change notification settings - Fork 16
/
phpstan.neon
93 lines (93 loc) · 3.13 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
parameters:
# Disable all phpstan rules.
customRulesetUsed: true
fileExtensions:
- php
- theme
- inc
reportUnmatchedIgnoredErrors: false
ignoreErrors:
- message: '#^Calling debug_backtrace\(\) is forbidden, please change the code$#'
count: 1
path: /app/web/themes/custom/bootstrap/src/Bootstrap.php
- message: '#^Calling print_r\(\) is forbidden, please change the code$#'
count: 1
path: /app/web/themes/custom/bootstrap/src/Bootstrap.php
disallowedFunctionCalls:
- function: 'curl_exec()'
message: 'please change the code'
- function: 'curl_init()'
message: 'please change the code'
- function: 'curl_multi_exec()'
message: 'please change the code'
- function: 'db_*()'
message: 'please change the code'
- function: 'dd()'
message: 'please change the code'
- function: 'debug_backtrace()'
message: 'please change the code'
- function: 'dump()'
message: 'please change the code'
- function: 'escapeshellcmd()'
message: 'please change the code'
- function: 'eval()'
message: 'please change the code'
- function: 'exec()'
message: 'please change the code'
- function: 'ftp_*()'
message: 'please change the code'
- function: 'mysql_*()'
message: 'please change the code'
- function: 'mysqli_*()'
message: 'please change the code'
- function: 'passthru()'
message: 'please change the code'
- function: 'pcntl_*()'
message: 'please change the code'
- function: 'phpinfo()'
message: 'please change the code'
- function: 'popen()'
message: 'please change the code'
- function: 'posix_getpwuid()'
message: 'please change the code'
- function: 'posix_kill()'
message: 'please change the code'
- function: 'posix_mkfifo()'
message: 'please change the code'
- function: 'posix_setpgid()'
message: 'please change the code'
- function: 'posix_setsid()'
message: 'please change the code'
- function: 'posix_setuid()'
message: 'please change the code'
- function: 'posix_uname()'
message: 'please change the code'
- function: 'print_r()'
message: 'please change the code'
- function: 'proc_open()'
message: 'please change the code'
- function: 'proc_get_status()'
message: 'please change the code'
- function: 'proc_terminate()'
message: 'please change the code'
- function: 'proc_close()'
message: 'please change the code'
- function: 'proc_nice()'
message: 'please change the code'
- function: 'shell_exec()'
message: 'please change the code'
- function: 'sleep()'
message: 'please change the code'
- function: 'system()'
message: 'please change the code'
- function: 'var_dump()'
message: 'please change the code'
disallowedMethodCalls:
- method: 'mysqli::*()'
message: 'please change the code'
- method: 'SQLite3::*()'
message: 'please change the code'
- method: 'SQLite3Stmt::*()'
message: 'please change the code'
- method: 'SQLite3Result::*()'
message: 'please change the code'