1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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

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