aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 086ebc3..e368bfc 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,12 @@
-.PHONY: check format
+.PHONY: check format check-luacheck check-format
-check:
+check: check-luacheck check-format
+
+check-luacheck:
luacheck --globals=vis -- init.lua
+check-format:
+ diff init.lua <(lua-format init.lua) >/dev/null
+
format:
lua-format -i init.lua