Skip to content

Commit

Permalink
make verify pass
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziopandini committed Nov 27, 2018
1 parent cf194b7 commit 6f8d3d7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hack/verify-golint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ get_golint() {
GOLINT="${GOLINT:-$(get_golint)}"

# we need to do this because golint ./... matches vendor...
# we also further filter out generated k8s api code in the config package
# which unfortunately fails lint ...
# we also further filter out generated k8s api code in the config v1alpha1 package
# which unfortunately fails lint due to apimachinery conventions ...
# TODO(fabrizio pandini): makes this smarter (skip only one file)
go list ./... | \
grep -v '^sigs.k8s.io/kind/pkg/cluster/config$' | \
grep -v '^sigs.k8s.io/kind/pkg/cluster/config/v1alpha1$' | \
xargs -L1 "${GOLINT}" -set_exit_status

0 comments on commit 6f8d3d7

Please sign in to comment.