From cf53dc1f19564fc3fe5fb6cf81b5eaf0282bcb77 Mon Sep 17 00:00:00 2001 From: Jonathan Lange Date: Thu, 14 Jul 2016 16:42:23 +0100 Subject: [PATCH] Exclude vendor from shell linting --- files-with-type | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files-with-type b/files-with-type index d969f44052..0c7dcbb092 100755 --- a/files-with-type +++ b/files-with-type @@ -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/:.*$//'