diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2022-05-11 08:54:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-11 08:54:24 +0200 |
| commit | cb7ab98925d6923fffcdecdc7013d33018125b14 (patch) | |
| tree | fc5811e862fb40dd59b3e11412eaa956136f4916 /Makefile | |
| parent | e50b1fe60d87cbe7798ce921f08ea38a4750fa99 (diff) | |
| parent | aefdc6783cb77f09786542c90901a9e7120bea42 (diff) | |
| download | rneovim-cb7ab98925d6923fffcdecdc7013d33018125b14.tar.gz rneovim-cb7ab98925d6923fffcdecdc7013d33018125b14.tar.bz2 rneovim-cb7ab98925d6923fffcdecdc7013d33018125b14.zip | |
Merge pull request #18487 from clason/stylua
CI: format and lint runtime with Stylua
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -146,9 +146,16 @@ functionaltest: | nvim functionaltest-lua: | nvim +$(BUILD_TOOL) -C build functionaltest-lua +stylua: + stylua --check runtime/ + lualint: | build/.ran-cmake deps $(BUILD_TOOL) -C build lualint +_opt_stylua: + @command -v stylua && { $(MAKE) stylua; exit $$?; } \ + || echo "SKIP: stylua (stylua not found)" + shlint: @shellcheck --version | head -n 2 shellcheck scripts/vim-patch.sh @@ -214,7 +221,7 @@ appimage: appimage-%: bash scripts/genappimage.sh $* -lint: check-single-includes clint lualint _opt_pylint _opt_shlint _opt_commitlint +lint: check-single-includes clint _opt_stylua lualint _opt_pylint _opt_shlint _opt_commitlint # Generic pattern rules, allowing for `make build/bin/nvim` etc. # Does not work with "Unix Makefiles". @@ -226,4 +233,4 @@ $(DEPS_BUILD_DIR)/%: phony_force $(BUILD_TOOL) -C $(DEPS_BUILD_DIR) $(patsubst $(DEPS_BUILD_DIR)/%,%,$@) endif -.PHONY: test lualint pylint shlint functionaltest unittest lint clint clean distclean nvim libnvim cmake deps install appimage checkprefix commitlint +.PHONY: test stylua lualint pylint shlint functionaltest unittest lint clint clean distclean nvim libnvim cmake deps install appimage checkprefix commitlint |