1
0
Fork 0
forked from External/ergo

add gofmt check to make test

This commit is contained in:
Shivaram Lingamneni 2018-05-04 04:27:43 -04:00
parent f6373f7a4d
commit c0885f9cba
3 changed files with 2 additions and 1 deletions

10
.check-gofmt.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
# exclude vendor/
SOURCES="./oragono.go ./irc"
if [ -n "$(gofmt -s -l $SOURCES)" ]; then
echo "Go code is not formatted correctly with \`gofmt -s\`:"
gofmt -s -d $SOURCES
exit 1
fi