mirror of
https://github.com/munin-monitoring/muninlite.git
synced 2025-03-11 11:18:42 +01:00
Makefile: add 'lint' target
For now most plugins contain issues according to 'shellcheck'.
This commit is contained in:
parent
5f1d1b03b5
commit
0c4e577e9a
1 changed files with 5 additions and 0 deletions
5
Makefile
5
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)"
|
||||
|
|
Loading…
Reference in a new issue