Exclude vendor from shell linting

This commit is contained in:
Jonathan Lange
2016-07-14 16:42:23 +01:00
parent b2ab380391
commit cf53dc1f19

View File

@@ -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/:.*$//'