GNUmakefile: Add a fallback for hg files not working in linter target

This commit is contained in:
Kim Alvefur 2018-05-20 02:40:08 +02:00
parent 3120037b03
commit 20f0730255

View file

@ -77,7 +77,7 @@ coverage:
@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: