-
Notifications
You must be signed in to change notification settings - Fork 38
/
ioutil.yml
48 lines (48 loc) · 1.29 KB
/
ioutil.yml
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
rules:
- id: deprecated-ioutil-nopcloser
pattern: ioutil.NopCloser($R)
fix: io.NopCloser($R)
message: ioutil.NopCloser is deprecated
languages: [go]
severity: ERROR
- id: deprecated-ioutil-readall
pattern: ioutil.ReadAll($R)
fix: io.ReadAll($R)
message: ioutil.ReadAll is deprecated
languages: [go]
severity: ERROR
- id: deprecated-ioutil-readdir
pattern: ioutil.ReadDir($D)
message: ioutil.ReadDir is deprecated
languages: [go]
severity: ERROR
- id: deprecated-ioutil-readfile
pattern: ioutil.ReadFile($F)
fix: os.ReadFile($F)
message: ioutil.ReadFile is deprecated
languages: [go]
severity: ERROR
- id: deprecated-ioutil-tempdir
pattern: ioutil.TempDir($D, $P)
fix: os.MkdirTemp($D, $P)
message: ioutil.TempDir is deprecated
languages: [go]
severity: ERROR
- id: deprecated-ioutil-tempfile
pattern: ioutil.TempFile($D, $P)
fix: os.CreateTemp($D, $P)
message: ioutil.TempFile is deprecated
languages: [go]
severity: ERROR
- id: deprecated-ioutil-writefile
pattern: ioutil.WriteFile($F, $D, $P)
fix: os.WriteFile($F, $D, $P)
message: ioutil.WriteFile is deprecated
languages: [go]
severity: ERROR
- id: deprecated-ioutil-discard
pattern: ioutil.Discard
fix: io.Discard
message: ioutil.Discard is deprecated
languages: [go]
severity: ERROR