Migrate to golangci-lint

Signed-off-by: Tam Mach <sayboras@yahoo.com>
Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
sayboras
2019-10-09 23:02:21 +11:00
committed by Wang Yan
parent 9142de99fa
commit f807afbf85
35 changed files with 61 additions and 105 deletions

View File

@@ -1,11 +1,12 @@
#!/usr/bin/env bash
GOLANGCI_LINT_VERSION="v1.27.0"
#
# Install developer tools to $GOBIN (or $GOPATH/bin if unset)
#
set -eu -o pipefail
go get -u github.com/alecthomas/gometalinter
gometalinter --install >/dev/null
cd /tmp
go get -u github.com/LK4D4/vndr
go get -u github.com/cpuguy83/go-md2man
go get "github.com/golangci/golangci-lint/cmd/golangci-lint@${GOLANGCI_LINT_VERSION}"