replace gometalinter with golangci

gometalinter is being deprecated in favor of golangci.
switching to golangci in ci and make test

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna
2019-03-04 09:16:31 +05:30
parent 72edf06916
commit 1018eda27a
3 changed files with 151 additions and 12 deletions

View File

@ -2,11 +2,8 @@
set -o pipefail
if [[ -x "$(command -v gometalinter)" ]]; then
gometalinter -j "${GO_METALINTER_THREADS:-1}" \
--sort path --sort line --sort column --deadline=10m \
--enable=misspell --enable=staticcheck \
--vendor "${@-./...}"
if [[ -x "$(command -v golangci-lint)" ]]; then
golangci-lint --config=scripts/golangci.yml run ./... -v
else
echo "WARNING: gometalinter not found, skipping lint tests" >&2
echo "WARNING: golangci-lint not found, skipping lint tests" >&2
fi