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 <github@gone.nl>
pull/995/head
Sebastiaan van Stijn 3 years ago
parent fc7ba75fd7
commit fd62216cbc
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C

@ -12,6 +12,7 @@ linters:
- gofmt
- govet
- deadcode
- depguard
- goimports
- ineffassign
- misspell
@ -23,6 +24,15 @@ linters:
- structcheck
disable-all: true
linters-settings:
depguard:
list-type: blacklist
include-go-root: true
packages:
# The io/ioutil package has been deprecated.
# https://go.dev/doc/go1.16#ioutil
- io/ioutil
issues:
exclude-rules:
- linters:

Loading…
Cancel
Save