Bump golangci-lint version to v1.42.1
Signed-off-by: iawia002 <z2d@jifangcheng.com>
This commit is contained in:
parent
c4e22717df
commit
8bc3fe0c0f
|
@ -29,7 +29,6 @@ linters:
|
||||||
# linters maintained by golang.org
|
# linters maintained by golang.org
|
||||||
- gofmt
|
- gofmt
|
||||||
- goimports
|
- goimports
|
||||||
- golint
|
|
||||||
- govet
|
- govet
|
||||||
# linters default enabled by golangci-lint .
|
# linters default enabled by golangci-lint .
|
||||||
- deadcode
|
- deadcode
|
||||||
|
@ -45,6 +44,7 @@ linters:
|
||||||
- gocyclo
|
- gocyclo
|
||||||
- gosec
|
- gosec
|
||||||
- whitespace
|
- whitespace
|
||||||
|
- revive
|
||||||
|
|
||||||
linters-settings:
|
linters-settings:
|
||||||
goimports:
|
goimports:
|
||||||
|
|
|
@ -6,7 +6,7 @@ set -o pipefail
|
||||||
|
|
||||||
REPO_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
REPO_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
||||||
GOLANGCI_LINT_PKG="github.com/golangci/golangci-lint/cmd/golangci-lint"
|
GOLANGCI_LINT_PKG="github.com/golangci/golangci-lint/cmd/golangci-lint"
|
||||||
GOLANGCI_LINT_VER="v1.32.2"
|
GOLANGCI_LINT_VER="v1.42.1"
|
||||||
|
|
||||||
cd "${REPO_ROOT}"
|
cd "${REPO_ROOT}"
|
||||||
source "hack/util.sh"
|
source "hack/util.sh"
|
||||||
|
|
Loading…
Reference in New Issue