diff options
| author | seraphim <18ycm9tx@anonaddy.me> | 2026-08-27 11:50:43 +0700 |
|---|---|---|
| committer | seraphim <18ycm9tx@anonaddy.me> | 2026-08-27 11:50:43 +0700 |
| commit | 6fc7f49449cb237e1aa37eb1025461fe3ea39589 (patch) | |
| tree | ceebc8a65556830627a4546da57e30e72945175e /.config/vis/plugins/vis-lspc/Makefile | |
| parent | cc7b61a1496d25a100f012300c1121835a9f8177 (diff) | |
.
Diffstat (limited to '.config/vis/plugins/vis-lspc/Makefile')
| -rw-r--r-- | .config/vis/plugins/vis-lspc/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.config/vis/plugins/vis-lspc/Makefile b/.config/vis/plugins/vis-lspc/Makefile new file mode 100644 index 0000000..08666fc --- /dev/null +++ b/.config/vis/plugins/vis-lspc/Makefile @@ -0,0 +1,19 @@ +.PHONY: check format check-luacheck check-format test + +LUA_FILES := $(shell find -name "*.lua" -not -path "./json.lua" -and -not -path "./tests/*") + +TEST_FILES := $(shell find -name "*_test.lua") + +check: check-luacheck check-format + +check-luacheck: + luacheck --globals=vis -- $(LUA_FILES) + +check-format: + set -e; for lf in $(LUA_FILES); do tools/check-format "$${lf}"; done + +format: + lua-format -i $(LUA_FILES) + +test: + set -e; for tf in $(TEST_FILES); do "$$tf"; done |
