Changeset

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
parents 8806:6529f762b819
children 8808:40a7135eb6ac
files GNUmakefile
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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: