diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-11-09 07:39:01 -0500 |
---|---|---|
committer | Marco Hinz <mh.codebro@gmail.com> | 2019-11-09 13:39:01 +0100 |
commit | 5689008060d29dd7b45157a8f82cb96018c284e8 (patch) | |
tree | 7ad1a43882d262d3a472cb9c66c2dc81f48bf227 | |
parent | 9fb278ddea492cdae53be6fd948c75498df2f712 (diff) | |
download | rneovim-5689008060d29dd7b45157a8f82cb96018c284e8.tar.gz rneovim-5689008060d29dd7b45157a8f82cb96018c284e8.tar.bz2 rneovim-5689008060d29dd7b45157a8f82cb96018c284e8.zip |
build: add shlint target for shellcheck (#11350)
-rw-r--r-- | Makefile | 12 | ||||
-rwxr-xr-x | ci/run_lint.sh | 4 |
2 files changed, 14 insertions, 2 deletions
@@ -138,6 +138,14 @@ functionaltest-lua: | nvim lualint: | build/.ran-cmake deps $(BUILD_CMD) -C build lualint +shlint: + @shellcheck --version | head -n 2 + shellcheck scripts/vim-patch.sh + +_opt_shlint: + @command -v shellcheck && { $(MAKE) shlint; exit $$?; } \ + || echo "SKIP: shlint (shellcheck not found)" + pylint: flake8 contrib/ scripts/ src/ test/ @@ -188,7 +196,7 @@ appimage: appimage-%: bash scripts/genappimage.sh $* -lint: check-single-includes clint lualint _opt_pylint +lint: check-single-includes clint lualint _opt_pylint _opt_shlint # Generic pattern rules, allowing for `make build/bin/nvim` etc. # Does not work with "Unix Makefiles". @@ -200,4 +208,4 @@ $(DEPS_BUILD_DIR)/%: $(BUILD_CMD) -C $(DEPS_BUILD_DIR) $(patsubst $(DEPS_BUILD_DIR)/%,%,$@) endif -.PHONY: test lualint pylint functionaltest unittest lint clint clean distclean nvim libnvim cmake deps install appimage checkprefix +.PHONY: test lualint pylint shlint functionaltest unittest lint clint clean distclean nvim libnvim cmake deps install appimage checkprefix diff --git a/ci/run_lint.sh b/ci/run_lint.sh index 88af163e80..8373a3cb36 100755 --- a/ci/run_lint.sh +++ b/ci/run_lint.sh @@ -20,6 +20,10 @@ enter_suite 'pylint' run_test 'make pylint' pylint exit_suite --continue +enter_suite 'shlint' +run_test 'make shlint' shlint +exit_suite --continue + enter_suite single-includes CLICOLOR_FORCE=1 run_test_wd \ --allow-hang \ |