From c074c0d51a6e3c7924a2ddea3ea418729564a252 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 18 Mar 2020 15:26:55 +0100 Subject: Bringing shellcheck into the mix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 01ec0ab..e086ae1 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ .PHONY: test -test: git-validation unit-test +test: git-validation shellcheck unit-test .PHONY: unit-test unit-test: @@ -13,3 +13,11 @@ ifeq (, $(shell which git-validation 2> /dev/null)) else @git-validation -q -range da5b6722c940..HEAD -travis-pr-only=false endif + +.PHONY: shellcheck +shellcheck: +ifeq (, $(shell which shellcheck 2> /dev/null)) + @echo "You don't have 'shellcheck' installed, consider installing it (see the CONTRIBUTING.org file)." +else + @shellcheck g.sh +endif -- cgit v1.2.3