From 7f629d5e36edbd05492396233ff024e60b3f5e1d Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Wed, 24 Nov 2021 09:27:17 +1100 Subject: [PATCH] Added errorlint to devtools --- pkg/yqlib/stream_evaluator.go | 2 +- scripts/devtools.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/yqlib/stream_evaluator.go b/pkg/yqlib/stream_evaluator.go index 1be77ac..b4cf2c6 100644 --- a/pkg/yqlib/stream_evaluator.go +++ b/pkg/yqlib/stream_evaluator.go @@ -2,7 +2,7 @@ package yqlib import ( "container/list" - "errors" + "errors" "io" "os" diff --git a/scripts/devtools.sh b/scripts/devtools.sh index c418bee..c8daa97 100755 --- a/scripts/devtools.sh +++ b/scripts/devtools.sh @@ -1,5 +1,6 @@ #!/bin/sh set -ex -go get golang.org/x/tools/cmd/goimports +go install golang.org/x/tools/cmd/goimports +go install github.com/polyfloyd/go-errorlint wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.37.1 wget -O- -nv https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s v2.9.1