Software /
code /
prosody
Comparison
GNUmakefile @ 8798:505722879b55
GNUmakefile: Add 'lint' target
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 18 May 2018 14:58:14 +0100 |
parent | 8782:daa518a22c34 |
child | 8807:bf91de890107 |
comparison
equal
deleted
inserted
replaced
8797:7b621a4a2e8d | 8798:505722879b55 |
---|---|
74 luacov | 74 luacov |
75 luacov-console | 75 luacov-console |
76 luacov-console -s | 76 luacov-console -s |
77 @echo "To inspect individual files run: luacov-console -l FILENAME" | 77 @echo "To inspect individual files run: luacov-console -l FILENAME" |
78 | 78 |
79 lint: | |
80 luacheck -q $$(hg files -I '**.lua') prosody prosodyctl | |
81 @echo $$(sed -n '/^exclude_files/,/^}/p;' .luacheckrc | sed '1d;$d' | wc -l) files ignored | |
82 | |
79 util/%.so: | 83 util/%.so: |
80 $(MAKE) install -C util-src | 84 $(MAKE) install -C util-src |
81 | 85 |
82 %.install: % | 86 %.install: % |
83 sed "1s| lua$$| $(RUNWITH)|; \ | 87 sed "1s| lua$$| $(RUNWITH)|; \ |