Merge pull request #17 from weaveworks/lint-ignore

Update to ignore node_modules and *.generated.go
This commit is contained in:
Tom Wilkie
2016-02-22 14:17:29 +00:00

2
lint
View File

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