Merge pull request #23 from weaveworks/only-lint-git-files

Only lint git files
This commit is contained in:
Paul Bellamy
2016-07-13 15:18:21 +01:00
committed by GitHub

2
lint
View File

@@ -166,7 +166,7 @@ function lint_files {
function list_files {
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
git diff --cached --name-only
fi