mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 13:55:41 +00:00
Fix scripts to avoid testdata
This commit is contained in:
parent
514dd0e1f6
commit
db590ecd89
@ -152,6 +152,7 @@ skipped_names = [
|
|||||||
".git",
|
".git",
|
||||||
"cluster/env.sh",
|
"cluster/env.sh",
|
||||||
"vendor",
|
"vendor",
|
||||||
|
"testdata",
|
||||||
"test/e2e/generated/bindata.go",
|
"test/e2e/generated/bindata.go",
|
||||||
"hack/boilerplate/test",
|
"hack/boilerplate/test",
|
||||||
"staging/src/k8s.io/kubectl/pkg/generated/bindata.go",
|
"staging/src/k8s.io/kubectl/pkg/generated/bindata.go",
|
||||||
|
@ -36,6 +36,7 @@ function git_find() {
|
|||||||
':!:*/vendor/*' `# catches any subdir/vendor/...` \
|
':!:*/vendor/*' `# catches any subdir/vendor/...` \
|
||||||
':!:third_party/*' `# catches third_party/...` \
|
':!:third_party/*' `# catches third_party/...` \
|
||||||
':!:*/third_party/*' `# catches third_party/...` \
|
':!:*/third_party/*' `# catches third_party/...` \
|
||||||
|
':!:*/testdata/*' `# catches any subdir/testdata/...` \
|
||||||
':(glob)**/*.go' \
|
':(glob)**/*.go' \
|
||||||
"$@"
|
"$@"
|
||||||
}
|
}
|
||||||
|
@ -53,7 +53,8 @@ function git_find() {
|
|||||||
':!:vendor/*' `# catches vendor/...` \
|
':!:vendor/*' `# catches vendor/...` \
|
||||||
':!:*/vendor/*' `# catches any subdir/vendor/...` \
|
':!:*/vendor/*' `# catches any subdir/vendor/...` \
|
||||||
':!:third_party/*' `# catches third_party/...` \
|
':!:third_party/*' `# catches third_party/...` \
|
||||||
':!:*/third_party/*' `# catches third_party/...` \
|
':!:*/third_party/*' `# catches any subdir/third_party/...` \
|
||||||
|
':!:*/testdata/*' `# catches any subdir/testdata/...` \
|
||||||
':(glob)**/*.go' \
|
':(glob)**/*.go' \
|
||||||
"$@"
|
"$@"
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@ find_files() {
|
|||||||
-o -wholename './target' \
|
-o -wholename './target' \
|
||||||
-o -wholename '*/third_party/*' \
|
-o -wholename '*/third_party/*' \
|
||||||
-o -wholename '*/vendor/*' \
|
-o -wholename '*/vendor/*' \
|
||||||
-o -wholename './staging/src/k8s.io/client-go/*vendor/*' \
|
-o -wholename '*/testdata/*' \
|
||||||
-o -wholename '*/bindata.go' \
|
-o -wholename '*/bindata.go' \
|
||||||
\) -prune \
|
\) -prune \
|
||||||
\) -name '*.go'
|
\) -name '*.go'
|
||||||
|
@ -36,6 +36,7 @@ function find_files_to_check() {
|
|||||||
git ls-files -cmo --exclude-standard \
|
git ls-files -cmo --exclude-standard \
|
||||||
':!:vendor/*' `# catches vendor/...` \
|
':!:vendor/*' `# catches vendor/...` \
|
||||||
':!:*/vendor/*' `# catches any subdir/vendor/...` \
|
':!:*/vendor/*' `# catches any subdir/vendor/...` \
|
||||||
|
':!:*/testdata/*' `# catches any subdir/testdata/...` \
|
||||||
':!:third_party/*' `# catches third_party/...` \
|
':!:third_party/*' `# catches third_party/...` \
|
||||||
':!:*/third_party/*' `# catches third_party/...` \
|
':!:*/third_party/*' `# catches third_party/...` \
|
||||||
':!:hack/*' `# catches hack/...` \
|
':!:hack/*' `# catches hack/...` \
|
||||||
|
Loading…
Reference in New Issue
Block a user