You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Presence of a diff is the error case, meaning that the code requires formatting. Then for example, makefile targets to check formatting can simply be "gofmt -d ." and do the right thing.
What did you see instead?
exit value of 0
The text was updated successfully, but these errors were encountered:
this was requested in #24230 and #24427, and rejected. As noted in #24230, you can already check if gofmt -l is empty. Closing here as a dup of #24230.
What version of Go are you using (
go version
)?What did you do?
What did you expect to see?
Exit value of 1, since there is a diff.
Presence of a diff is the error case, meaning that the code requires formatting. Then for example, makefile targets to check formatting can simply be "gofmt -d ." and do the right thing.
What did you see instead?
exit value of 0
The text was updated successfully, but these errors were encountered: