# HG changeset patch # User Matthew Wild # Date 1526651894 -3600 # Node ID 505722879b5555d088f58fde3ff1bd95f3aec357 # Parent 7b621a4a2e8df51b974626519980e59623e9a354 GNUmakefile: Add 'lint' target diff -r 7b621a4a2e8d -r 505722879b55 GNUmakefile --- a/GNUmakefile Fri May 18 14:57:39 2018 +0100 +++ b/GNUmakefile Fri May 18 14:58:14 2018 +0100 @@ -76,6 +76,10 @@ 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