Build: Introduce shellcheck (#18081)

* Build: introduce shellcheck

Fixes #16198
This commit is contained in:
Oleg Gaidarenko
2019-07-23 13:12:33 +03:00
committed by GitHub
parent 87a794fe0a
commit 4b16cd6cc8
28 changed files with 161 additions and 156 deletions

View File

@@ -4,6 +4,7 @@
GO = GO111MODULE=on go
GO_FILES ?= ./pkg/...
SH_FILES ?= $(shell find ./scripts -name *.sh)
all: deps build
@@ -111,6 +112,11 @@ go-vet:
lint-go: go-vet golangci-lint revive revive-alerting gosec
# with disabled SC1071 we are ignored some TCL,Expect `/usr/bin/env expect` scripts
shellcheck: $(SH_FILES)
@docker run --rm -v "$$PWD:/mnt" koalaman/shellcheck:stable \
$(SH_FILES) -e SC1071
run: scripts/go/bin/bra
@scripts/go/bin/bra run