mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 02:00:43 +00:00
Update to ignore node_modules and *.generated.go
This commit is contained in:
2
lint
2
lint
@@ -148,7 +148,7 @@ function lint_files {
|
|||||||
|
|
||||||
function list_files {
|
function list_files {
|
||||||
if [ $# -gt 0 ]; then
|
if [ $# -gt 0 ]; then
|
||||||
find "$@" -type f | grep -vE '(^\./\.git|^\./\.pkg|/vendor/|codecgen.go$)'
|
find "$@" -type f | grep -vE '(^\./\.git|^\./\.pkg|/vendor/|/node_modules/|\.codecgen\.go$|\.generated\.go$)'
|
||||||
else
|
else
|
||||||
git diff --cached --name-only
|
git diff --cached --name-only
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user