From e1dfb1a4166ea0c4288bb83543d79cdd0d51e736 Mon Sep 17 00:00:00 2001 From: Matt Butcher Date: Fri, 25 Mar 2016 17:00:55 -0600 Subject: [PATCH] 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. --- scripts/validate-go.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/validate-go.sh b/scripts/validate-go.sh index 264ff3e89..5c824e63e 100755 --- a/scripts/validate-go.sh +++ b/scripts/validate-go.sh @@ -48,6 +48,7 @@ if [[ -n "${failed_fmt}" ]]; then echo "${red}" echo "gofmt check failed:" echo "$failed_fmt" + find_go_files | xargs gofmt -s -d echo "${reset}" exit_code=1 fi