Ignore gophercloud in verify checks
This commit is contained in:
parent
01b97d2ad4
commit
c2f2e9cd63
|
|
@ -147,7 +147,8 @@ def file_extension(filename):
|
|||
|
||||
skipped_dirs = ['Godeps', 'third_party', '_gopath', '_output', '.git', 'cluster/env.sh',
|
||||
"vendor", "test/e2e/generated/bindata.go", "hack/boilerplate/test",
|
||||
"pkg/generated/bindata.go"]
|
||||
"pkg/generated/bindata.go",
|
||||
"cluster-autoscaler/cloudprovider/magnum/gophercloud"]
|
||||
|
||||
# list all the files contain 'DO NOT EDIT', but are not generated
|
||||
skipped_ungenerated_files = ['hack/build-ui.sh', 'hack/lib/swagger.sh',
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ find_files() {
|
|||
-o -wholename '*/third_party/*' \
|
||||
-o -wholename '*/Godeps/*' \
|
||||
-o -wholename '*/vendor/*' \
|
||||
-o -wholename './cluster-autoscaler/cloudprovider/magnum/gophercloud/*' \
|
||||
\) -prune \
|
||||
\) -name '*.go'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
|
|||
cd "${KUBE_ROOT}"
|
||||
|
||||
GOLINT=${GOLINT:-"golint"}
|
||||
PACKAGES=($(go list ./... | grep -v /vendor/ | grep -v vertical-pod-autoscaler/pkg/client | grep -v vertical-pod-autoscaler/pkg/apis))
|
||||
PACKAGES=($(go list ./... | grep -v /vendor/ | grep -v vertical-pod-autoscaler/pkg/client | grep -v vertical-pod-autoscaler/pkg/apis | grep -v cluster-autoscaler/cloudprovider/magnum/gophercloud))
|
||||
bad_files=()
|
||||
for package in "${PACKAGES[@]}"; do
|
||||
out=$("${GOLINT}" -min_confidence=0.9 "${package}")
|
||||
|
|
|
|||
|
|
@ -23,4 +23,4 @@ DIR=$(dirname $0)
|
|||
go install ${DIR}/../../../github.com/client9/misspell/cmd/misspell
|
||||
|
||||
# Spell checking
|
||||
git ls-files | grep -v -e vendor | xargs misspell -error -o stderr
|
||||
git ls-files --full-name | grep -v -e vendor | grep -v cluster-autoscaler/cloudprovider/magnum/gophercloud | xargs misspell -error -o stderr
|
||||
|
|
|
|||
Loading…
Reference in New Issue