vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 7a0a6862f58a9b3b3dfb4a437448285a13bfed2b parent b8c8fe09d50bb1ec47f83500474cbe60dcd49197 Author: Marc André Tanner <mat@brain-dump.org> Date: Fri, 3 Mar 2017 23:00:33 +0100 build: add luacheck make target Diffstat:
| A | .luacheckrc | | | 5 | +++++ |
| M | Makefile | | | 5 | ++++- |
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/.luacheckrc b/.luacheckrc @@ -0,0 +1,5 @@ +-- std = "min" +globals = { "vis" } +include_files = { "lua/*.lua", "lua/**/*.lua", "test/lua/*.lua" } +exclude_files = { "lua/lexer.lua", "lua/lexers/**", "test/lua/visrc.lua" } +files["test/lua"] = { std = "+busted" } diff --git a/Makefile b/Makefile @@ -101,6 +101,9 @@ luadoc: luadoc-all: @cd lua/doc && ldoc -a . && sed -e "s/RELEASE/${VERSION}/" -i index.html +luacheck: + @luacheck --config .luacheckrc lua test/lua | less -R + install: $(ELF) @echo stripping executable @for e in $(ELF); do \ @@ -137,4 +140,4 @@ uninstall: @echo removing support files from ${DESTDIR}${SHAREPREFIX}/vis @rm -rf ${DESTDIR}${SHAREPREFIX}/vis -.PHONY: all clean dist install uninstall debug profile coverage test test-update luadoc luadoc-all man +.PHONY: all clean dist install uninstall debug profile coverage test test-update luadoc luadoc-all luacheck man