forked from mystiq/dex
chore: enable depguard for io/ioutil package
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
This commit is contained in:
parent
f0186ff265
commit
551022046c
1 changed files with 8 additions and 1 deletions
|
@ -2,6 +2,13 @@ run:
|
||||||
timeout: 2m
|
timeout: 2m
|
||||||
|
|
||||||
linters-settings:
|
linters-settings:
|
||||||
|
depguard:
|
||||||
|
list-type: blacklist
|
||||||
|
include-go-root: true
|
||||||
|
packages:
|
||||||
|
- io/ioutil
|
||||||
|
packages-with-error-message:
|
||||||
|
- io/ioutil: "The 'io/ioutil' package is deprecated. Use corresponding 'os' or 'io' functions instead."
|
||||||
gci:
|
gci:
|
||||||
local-prefixes: github.com/dexidp/dex
|
local-prefixes: github.com/dexidp/dex
|
||||||
goimports:
|
goimports:
|
||||||
|
@ -13,6 +20,7 @@ linters:
|
||||||
enable:
|
enable:
|
||||||
- bodyclose
|
- bodyclose
|
||||||
- deadcode
|
- deadcode
|
||||||
|
- depguard
|
||||||
- dogsled
|
- dogsled
|
||||||
- exhaustive
|
- exhaustive
|
||||||
- exportloopref
|
- exportloopref
|
||||||
|
@ -64,7 +72,6 @@ linters:
|
||||||
# - scopelint
|
# - scopelint
|
||||||
|
|
||||||
# unused
|
# unused
|
||||||
# - depguard
|
|
||||||
# - goheader
|
# - goheader
|
||||||
# - gomodguard
|
# - gomodguard
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue