Merge pull request #2591 from RainbowMango/pr_update_golangcilint
Update golangci-lint from 1.46.2 to 1.49.0
This commit is contained in:
commit
e693dfe4ca
|
@ -32,15 +32,12 @@ linters:
|
||||||
- goimports
|
- goimports
|
||||||
- govet
|
- govet
|
||||||
# linters default enabled by golangci-lint .
|
# linters default enabled by golangci-lint .
|
||||||
- deadcode
|
|
||||||
- errcheck
|
- errcheck
|
||||||
- gosimple
|
- gosimple
|
||||||
- ineffassign
|
- ineffassign
|
||||||
- staticcheck
|
- staticcheck
|
||||||
- structcheck
|
|
||||||
- typecheck
|
- typecheck
|
||||||
- unused
|
- unused
|
||||||
- varcheck
|
|
||||||
# other linters supported by golangci-lint.
|
# other linters supported by golangci-lint.
|
||||||
- gci
|
- gci
|
||||||
- gocyclo
|
- gocyclo
|
||||||
|
|
|
@ -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.46.2"
|
GOLANGCI_LINT_VER="v1.49.0"
|
||||||
|
|
||||||
cd "${REPO_ROOT}"
|
cd "${REPO_ROOT}"
|
||||||
source "hack/util.sh"
|
source "hack/util.sh"
|
||||||
|
|
Loading…
Reference in New Issue