chores(deps): support depguard rules in golang-lint (#4640)
* update depguard rules golang-lint Signed-off-by: dongjiang1989 <dongjiang1989@126.com> * Update .golangci.yml Co-authored-by: Hongcai Ren <renhongcai@huawei.com> Signed-off-by: dongjiang1989 <dongjiang1989@126.com> --------- Signed-off-by: dongjiang1989 <dongjiang1989@126.com> Co-authored-by: Hongcai Ren <renhongcai@huawei.com>
This commit is contained in:
parent
f935586e7d
commit
9250219d2c
|
@ -48,8 +48,15 @@ linters:
|
||||||
- misspell
|
- misspell
|
||||||
- whitespace
|
- whitespace
|
||||||
- revive
|
- revive
|
||||||
|
- depguard
|
||||||
|
|
||||||
linters-settings:
|
linters-settings:
|
||||||
|
depguard:
|
||||||
|
rules:
|
||||||
|
main:
|
||||||
|
deny:
|
||||||
|
- pkg: "io/ioutil"
|
||||||
|
desc: "replaced by io and os packages since Go 1.16: https://tip.golang.org/doc/go1.16#ioutil"
|
||||||
goimports:
|
goimports:
|
||||||
local-prefixes: github.com/karmada-io/karmada
|
local-prefixes: github.com/karmada-io/karmada
|
||||||
gocyclo:
|
gocyclo:
|
||||||
|
|
Loading…
Reference in New Issue