mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-04 02:30:45 +00:00
Merge pull request #23 from weaveworks/only-lint-git-files
Only lint git files
This commit is contained in:
2
lint
2
lint
@@ -166,7 +166,7 @@ function lint_files {
|
||||
|
||||
function list_files {
|
||||
if [ $# -gt 0 ]; then
|
||||
find "$@" -type f | grep -vE '(^\./\.git|^\./\.pkg|/vendor/|/node_modules/|\.codecgen\.go$|\.generated\.go$)'
|
||||
git ls-files --exclude-standard | grep -v '^vendor/'
|
||||
else
|
||||
git diff --cached --name-only
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user