From 0c4e577e9af8b0673fa43d80daee904dcdb27316 Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Tue, 23 Jul 2019 05:23:03 +0200 Subject: [PATCH] Makefile: add 'lint' target For now most plugins contain issues according to 'shellcheck'. --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 5bed73e..248bfc0 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,7 @@ help: @$(info clean - remove assembled 'TARGET_FILE' ($(TARGET_FILE))) @$(info clean-all - remove old releases from 'DIST_DIR' ($(DIST_DIR))) @$(info help - show this overview) + @$(info lint - code style checks) @$(info tgz - create release archive) .PHONY: all @@ -62,3 +63,7 @@ $(TGZ_FILE): @mkdir -p "$(dir $(@))" git archive --prefix=muninlite-$(VERSION)/ --format=tar --output "$@.tmp" HEAD mv "$@.tmp" "$@" + +.PHONY: lint +lint: + shellcheck -s dash --exclude=SC2230 $(PLUGIN_FILES) "$(INPUT_FILE)"