Skip to content

Commit 8c3ae38

Browse files
committed
golangci-lint: prevent io/ioutil from being used
The package has been deprecated since Go 1.16: https://go.dev/doc/go1.16#ioutil Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 6c06950 commit 8c3ae38

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.golangci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ linters:
22
enable:
33
- bodyclose
44
- deadcode
5+
- depguard
56
- dogsled
67
- gocyclo
78
- goimports
@@ -33,6 +34,13 @@ run:
3334
- .*generated.*
3435

3536
linters-settings:
37+
depguard:
38+
list-type: blacklist
39+
include-go-root: true
40+
packages:
41+
# The io/ioutil package has been deprecated.
42+
# https://go.dev/doc/go1.16#ioutil
43+
- io/ioutil
3644
gocyclo:
3745
min-complexity: 16
3846
govet:

0 commit comments

Comments
 (0)