feat: Add shellcheck linter
This commit is contained in:
parent
05e2381981
commit
45d089a717
5
Makefile
5
Makefile
@ -13,6 +13,7 @@ help:
|
|||||||
@echo
|
@echo
|
||||||
@echo 'help print this help message'
|
@echo 'help print this help message'
|
||||||
@echo 'tests run tests from $(tests_dir)'
|
@echo 'tests run tests from $(tests_dir)'
|
||||||
|
@echo 'lint run shellcheck'
|
||||||
@echo 'docs build documentation from $(docs_dir)'
|
@echo 'docs build documentation from $(docs_dir)'
|
||||||
@echo
|
@echo
|
||||||
@echo See README.rst for more info.
|
@echo See README.rst for more info.
|
||||||
@ -21,6 +22,10 @@ tests:
|
|||||||
# See bats(1), https://bats-core.readthedocs.io/en/latest/index.html
|
# 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
|
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
|
docs: builddir
|
||||||
# See rst2man(1), rst2html(1), https://docutils.sourceforge.io/docs/index.html
|
# 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
|
rst2man $(docs_dir)/baf.1.rst | gzip -9 > $(docs_build_dir)/baf.1
|
||||||
|
Loading…
Reference in New Issue
Block a user