forked from External/ergo
add gofmt check to make test
This commit is contained in:
parent
f6373f7a4d
commit
c0885f9cba
3 changed files with 2 additions and 1 deletions
10
.check-gofmt.sh
Executable file
10
.check-gofmt.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue