wifictld-analyzer/.ci/check-gofmt

9 lines
175 B
Plaintext
Raw Normal View History

2019-02-28 17:02:34 +01:00
#!/bin/bash
result="$(gofmt -s -l . | grep -v '^vendor/' )"
if [ -n "$result" ]; then
echo "Go code is not formatted, run 'gofmt -s -w .'" >&2
echo "$result"
exit 1
fi