Skip to content

Commit 5aed73c

Browse files
authored
Merge pull request #330 from hantaowang/update-go-fmt
update gofmt to not search unnecessary places and report files changed
2 parents 146f88a + fc022ad commit 5aed73c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/update-gofmt.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ set -o errexit
1818
set -o nounset
1919
set -o pipefail
2020

21-
find . -name "*.go" | grep -v "\/vendor\/" | xargs gofmt -s -w
21+
find . -not -path "*/vendor/*" -not -path "./test/k8s-integration/src/*" -name "*.go" | xargs gofmt -s -w -l

0 commit comments

Comments
 (0)