Blacklist ioutil pkg in golangci-lint

This is to prevent anyone from accidentally importing the pkg

Signed-off-by: Abhinav Nair <11939846+abhinavnair@users.noreply.github.com>
This commit is contained in:
Abhinav Nair 2022-06-28 09:18:40 +08:00
parent 11f2f2dbc4
commit a783cc4574
No known key found for this signature in database
GPG Key ID: 1724728BA191F70C

View File

@ -7,6 +7,7 @@ linters:
disable-all: true disable-all: true
enable: enable:
- deadcode - deadcode
- depguard
- errcheck - errcheck
- gocyclo - gocyclo
- gofmt - gofmt
@ -26,6 +27,13 @@ linters:
- unused - unused
- varcheck - varcheck
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
lll: lll: