From b45e578ddd2f0194233f8c5ac9c51184ebe336fe Mon Sep 17 00:00:00 2001 From: Chao Xu Date: Wed, 24 Aug 2016 13:02:57 -0700 Subject: [PATCH] ignore staging in munge scripts --- hack/lib/util.sh | 1 + hack/verify-flags-underscore.py | 2 ++ hack/verify-gofmt.sh | 1 + 3 files changed, 4 insertions(+) diff --git a/hack/lib/util.sh b/hack/lib/util.sh index cd6db72bfb5..08f873f3cc6 100755 --- a/hack/lib/util.sh +++ b/hack/lib/util.sh @@ -260,6 +260,7 @@ kube::util::gen-analytics() { mdfiles=($( find "${dir}" -name "*.md" -type f \ -not -path '*/\.*' \ -not -path "${path}/vendor/*" \ + -not -path "${path}/staging/*" \ -not -path "${path}/third_party/*" \ -not -path "${path}/_gopath/*" \ -not -path "${path}/_output/*" \ diff --git a/hack/verify-flags-underscore.py b/hack/verify-flags-underscore.py index 1e8b4f8fa26..9c9d5ceb74d 100755 --- a/hack/verify-flags-underscore.py +++ b/hack/verify-flags-underscore.py @@ -55,6 +55,8 @@ def get_all_files(rootdir): # don't visit certain dirs if 'vendor' in dirs: dirs.remove('vendor') + if 'staging' in dirs: + dirs.remove('staging') if '_output' in dirs: dirs.remove('_output') if '_gopath' in dirs: diff --git a/hack/verify-gofmt.sh b/hack/verify-gofmt.sh index cd86c826570..573c95cc229 100755 --- a/hack/verify-gofmt.sh +++ b/hack/verify-gofmt.sh @@ -37,6 +37,7 @@ find_files() { -o -wholename './target' \ -o -wholename '*/third_party/*' \ -o -wholename '*/vendor/*' \ + -o -wholename './staging' \ \) -prune \ \) -name '*.go' }