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>
This commit is contained in:
Sebastiaan van Stijn 2022-02-25 16:05:15 +01:00
parent 6c06950cdf
commit 8c3ae386cd
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,7 @@ linters:
enable: enable:
- bodyclose - bodyclose
- deadcode - deadcode
- depguard
- dogsled - dogsled
- gocyclo - gocyclo
- goimports - goimports
@ -33,6 +34,13 @@ run:
- .*generated.* - .*generated.*
linters-settings: 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
gocyclo: gocyclo:
min-complexity: 16 min-complexity: 16
govet: govet: