Diff

GNUmakefile @ 8807:bf91de890107

GNUmakefile: Add a fallback for `hg files` not working in linter target
author Kim Alvefur <zash@zash.se>
date Sun, 20 May 2018 02:40:08 +0200
parent 8798:505722879b55
child 8823:0cf281afdf0e
line wrap: on
line diff
--- a/GNUmakefile	Sat May 19 00:30:34 2018 +0200
+++ b/GNUmakefile	Sun May 20 02:40:08 2018 +0200
@@ -77,7 +77,7 @@
 	@echo "To inspect individual files run: luacov-console -l FILENAME"
 
 lint:
-	luacheck -q $$(hg files -I '**.lua') prosody prosodyctl
+	luacheck -q $$(hg files -I '**.lua' || echo core net util plugins) prosody prosodyctl
 	@echo $$(sed -n '/^exclude_files/,/^}/p;' .luacheckrc | sed '1d;$d' | wc -l) files ignored
 
 util/%.so: