Skip to content

Commit

Permalink
ignored files correctly from gofmt and golint checks
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu-kun committed Sep 28, 2023
1 parent 5220abd commit 6e84e30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions hack/verify-gofmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ set -o pipefail
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
cd "${KUBE_ROOT}"

#FORK-CHANGE: ignoring `./cluster-autoscaler/cloudprovider/mcm/*`
find_files() {
find . -not \( \
\( \
Expand All @@ -43,6 +44,7 @@ find_files() {
-o -wholename './cluster-autoscaler/cloudprovider/huaweicloud/huaweicloud-sdk-go-v3/*' \
-o -wholename './cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/*' \
-o -wholename './cluster-autoscaler/cloudprovider/hetzner/hcloud-go/*' \
-o -wholename './cluster-autoscaler/cloudprovider/mcm/*' \
\) -prune \
\) -name '*.go'
}
Expand Down
2 changes: 1 addition & 1 deletion hack/verify-golint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ excluded_packages=(
'cluster-autoscaler/cloudprovider/hetzner/hcloud-go'
'cluster-autoscaler/expander/grpcplugin/protos'
'cluster-autoscaler/cloudprovider/tencentcloud/tencentcloud-sdk-go'
'balancer/' # FORK-CHANGE: since we don't use `balancer` component , no need to do any golint checks and block our PR tests
'balancer' # FORK-CHANGE: since we don't use `balancer` component , no need to do any golint checks and block our PR tests
)

FIND_PACKAGES='go list ./... '
Expand Down

0 comments on commit 6e84e30

Please sign in to comment.