From 45d089a7171d1a66f21e16a96e9d966c33b9d7d0 Mon Sep 17 00:00:00 2001 From: ge Date: Sat, 14 May 2022 20:06:20 +0300 Subject: [PATCH] feat: Add shellcheck linter --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 99439c6..aa789a4 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,7 @@ help: @echo @echo 'help print this help message' @echo 'tests run tests from $(tests_dir)' + @echo 'lint run shellcheck' @echo 'docs build documentation from $(docs_dir)' @echo @echo See README.rst for more info. @@ -21,6 +22,10 @@ tests: # See bats(1), https://bats-core.readthedocs.io/en/latest/index.html for test in $(tests_dir)/*.bats; do bats --verbose-run --print-output-on-failure "$$test"; done +lint: + shellcheck $(src_dir)/baf || true + shellcheck $(src_dir)/lib/* || true + docs: builddir # See rst2man(1), rst2html(1), https://docutils.sourceforge.io/docs/index.html rst2man $(docs_dir)/baf.1.rst | gzip -9 > $(docs_build_dir)/baf.1