aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2024-05-02 16:00:54 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2024-05-02 16:00:54 +0200
commitaead994af26e91c3a094b010fcba3d45453c8940 (patch)
tree5841d69f14d24f7239d6d1c7edd9d5e48c735f49 /Makefile
downloadvis-lockfiles-aead994af26e91c3a094b010fcba3d45453c8940.tar.gz
vis-lockfiles-aead994af26e91c3a094b010fcba3d45453c8940.zip
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..816596e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+.PHONY: check format check-luacheck check-format
+
+LUA_FILES := $(shell find -name "*.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)