Skip to content

Commit

Permalink
Properly exclude vendor from lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jml committed Jul 15, 2016
1 parent ca6ebfb commit c045d16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion files-with-type
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
mime_type=$1
shift

git ls-files | grep -vE '^vendor/' | xargs file --mime-type | grep "${mime_type}" | sed -e 's/:.*$//'
git ls-files "$@" | grep -vE '^vendor/' | xargs file --mime-type | grep "${mime_type}" | sed -e 's/:.*$//'
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
git ls-files --exclude-standard | grep -v '^vendor/'
git ls-files --exclude-standard | grep -vE '(^|/)vendor/'
else
git diff --cached --name-only
fi
Expand Down

0 comments on commit c045d16

Please sign in to comment.