-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathphpstan.neon
executable file
·58 lines (57 loc) · 1.18 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
parameters:
level: 9
paths:
- no-unsafe-inline.php
- uninstall.php
- src
- admin
- includes
- public
scanFiles:
- no-unsafe-inline.php
scanDirectories:
- vendor
ignoreErrors:
- '#Constant NO_UNSAFE_INLINE_PLUGIN_DIR not found.#'
- '#Constant NO_UNSAFE_INLINE_PLUGIN_BASENAME not found.#'
typeAliases:
CSPReportUri: '''
array{
csp-report?: array{
document-uri?: string,
referrer?: string,
violated-directive?: string,
effective-directive?: string,
original-policy?: string,
disposition?: string,
blocked-uri?: string,
line-number?: int,
column-number?: int,
source-file?: string,
status-code?: int,
script-sample?: string
}
}
'''
CSPReportTo: '''
array{
type: string,
age: int,
url?: string,
user_agent?: string,
body?: array{
document-url: string,
referrer?: string,
violated-directive?: string,
effective-directive?: string,
original-policy?: string,
disposition?: string,
blocked-uri?: string,
line-number?: int,
column-number?: int,
source-file?: string,
status-code?: int,
script-sample?: string
}
}
'''