From 49831eef8f860ca29dbe4639ed14feab73fb3189 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 18 May 2018 14:58:14 +0100 Subject: GNUmakefile: Add 'lint' target --- GNUmakefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 0253cacd..69fa12f3 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -76,6 +76,10 @@ coverage: luacov-console -s @echo "To inspect individual files run: luacov-console -l FILENAME" +lint: + luacheck -q $$(hg files -I '**.lua') prosody prosodyctl + @echo $$(sed -n '/^exclude_files/,/^}/p;' .luacheckrc | sed '1d;$d' | wc -l) files ignored + util/%.so: $(MAKE) install -C util-src -- cgit v1.2.3