Skip to content

Commit dd6ce5a

Browse files
committed
test: add "go vet"
but ignore "composite literal uses unkeyed fields" of which there are currently many violations
1 parent 08c91be commit dd6ce5a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ for dir in apps/*/ bench/*/; do
2020
fi
2121
done
2222

23+
# disable "composite literal uses unkeyed fields"
24+
go vet -composites=false ./...
25+
2326
FMTDIFF="$(find apps internal nsqd nsqlookupd -name '*.go' -exec gofmt -d '{}' ';')"
2427
if [ -n "$FMTDIFF" ]; then
2528
printf '%s\n' "$FMTDIFF"

0 commit comments

Comments
 (0)