Only lint git files

Means we don't get spurious warnings from generated Javascript files.
This commit is contained in:
Jonathan Lange
2016-07-13 15:09:24 +01:00
parent 50d47f9f06
commit 47a01522c6

2
lint
View File

@@ -166,7 +166,7 @@ function lint_files {
function list_files { function list_files {
if [ $# -gt 0 ]; then if [ $# -gt 0 ]; then
find "$@" -type f | grep -vE '(^\./\.git|^\./\.pkg|/vendor/|/node_modules/|\.codecgen\.go$|\.generated\.go$)' git ls-files --exclude-standard | grep -v '^vendor/'
else else
git diff --cached --name-only git diff --cached --name-only
fi fi