We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6774106 commit 5d3247fCopy full SHA for 5d3247f
bin/test-go-fmt
@@ -1,7 +1,10 @@
1
#!/usr/bin/env bash
2
set -euo pipefail
3
T="$(mktemp)"
4
-find . -name '*.go' '!' -path ./plugin/loader/preload.go | xargs gofmt -l > "$T"
+find . \
5
+ -path ./test/sharness -prune \
6
+ -o -path ./plugin/loader/preload.go -prune \
7
+ -o -name '*.go' -print0 | xargs -0 gofmt -l > "$T"
8
9
if [ -n "$(cat $T)" ]; then
10
echo "Following Go code is not formatted."
0 commit comments