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