fix(validate-go): show the errors gofmt found

Rather than just listing files that have errors, this now shows
the diff of what gofmt things should be the case, and what is
the case.
pull/460/head
Matt Butcher 10 years ago
parent d3975520e3
commit e1dfb1a416

@ -48,6 +48,7 @@ if [[ -n "${failed_fmt}" ]]; then
echo "${red}" echo "${red}"
echo "gofmt check failed:" echo "gofmt check failed:"
echo "$failed_fmt" echo "$failed_fmt"
find_go_files | xargs gofmt -s -d
echo "${reset}" echo "${reset}"
exit_code=1 exit_code=1
fi fi

Loading…
Cancel
Save