summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2024-02-29 17:07:25 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2024-02-29 17:07:25 +0100
commit996b504c835cd1157878fe057c6434e313037438 (patch)
tree6319681c7c60c83e229a60b09410b6cfb0e4db68 /Makefile
parent180f8825edd1d40c37f001f4c563db3a9d7b1f6a (diff)
downloadvis-snippets-996b504c835cd1157878fe057c6434e313037438.tar.gz
vis-snippets-996b504c835cd1157878fe057c6434e313037438.zip
add lua development tooling
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)