Rainbond/check.sh

11 lines
204 B
Bash
Raw Normal View History

2019-02-12 15:40:42 +08:00
for n in `find . -name "*.go"`; do
if [[ $n != ./vendor/* ]];
then
2019-02-12 16:41:14 +08:00
go tool vet $n
2019-02-12 15:40:42 +08:00
gofmt -w $n
2019-02-12 16:41:14 +08:00
# gometalinter $n
2019-02-12 17:19:42 +08:00
# golint $n
# gocyclo -over 15 $n
2019-02-12 16:41:14 +08:00
misspell $n
2019-02-12 15:40:42 +08:00
fi
done