Makefile: add 'lint' target

For now most plugins contain issues according to 'shellcheck'.
This commit is contained in:
Lars Kruse 2019-07-23 05:23:03 +02:00
parent 5f1d1b03b5
commit 0c4e577e9a
1 changed files with 5 additions and 0 deletions

View File

@ -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)"