Skip to content

Commit

Permalink
Exclude vendor from shell linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jml committed Jul 14, 2016
1 parent b2ab380 commit cf53dc1
Showing 1 changed file with 1 addition and 1 deletion.
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

find "$@" -print0 -type f |xargs -0 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/:.*$//'

0 comments on commit cf53dc1

Please sign in to comment.