hack: use golangci-lint to find io/ioutil

The package has been deprecated since Go 1.16.

Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
This commit is contained in:
Kazuyoshi Kato 2021-12-23 08:57:27 -08:00
parent 64441553e7
commit 9a0b1f4f6b
1 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,7 @@
linters:
enable:
- deadcode
- depguard
- goimports
- golint
- gosec
@ -31,7 +32,13 @@ linters:
linters-settings:
govet:
check-shadowing: false
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:
# The default exclusion rules are a bit too permissive, so copying the relevant ones below
exclude-use-default: false