mirror of
https://github.com/docker/compose.git
synced 2025-07-26 15:14:04 +02:00
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:
parent
11f2f2dbc4
commit
a783cc4574
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user