Enable goimports local prefix check

Signed-off-by: futuretea <1913508671@qq.com>
This commit is contained in:
futuretea 2021-05-12 23:46:15 +08:00 committed by Hongcai Ren
parent e0f725ca2d
commit fc79a90507
1 changed files with 4 additions and 1 deletions

View File

@ -28,6 +28,7 @@ linters:
enable:
# linters maintained by golang.org
- gofmt
- goimports
- golint
- govet
# linters default enabled by golangci-lint .
@ -40,7 +41,9 @@ linters:
- typecheck
- unused
- varcheck
linters-settings:
goimports:
local-prefixes: github.com/karmada-io/karmada
issues:
# The list of ids of default excludes to include or disable. By default it's empty.
include: