Skip to content

Commit

Permalink
Merge pull request #23 from weaveworks/only-lint-git-files
Browse files Browse the repository at this point in the history
Only lint git files
  • Loading branch information
paulbellamy authored Jul 13, 2016
2 parents 50d47f9 + 47a0152 commit f643920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lint
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f643920

Please sign in to comment.