mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-04 02:30:45 +00:00
Exclude vendor from shell linting
This commit is contained in:
@@ -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/:.*$//'
|
||||
|
||||
Reference in New Issue
Block a user