From 4bf903481ac49c33ac1059c1fe1e79a0e2ef8f9b Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 8 Mar 2021 12:07:57 +0100 Subject: add new check-format make target --- Makefile | 9 +++++++-- 1 file 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 -- cgit v1.2.3