go test ./... ignores directories prefixed with _. This is convenient and seems like a
reasonable rule of thumb.
gofmt -w .
does *not* honor this "rule"
With the ascendance of Godeps there are now Godeps/_workspace folders vendoring
dependencies all over the place. Having gofmt -w . rewrite my dependencies is painful.
Any change the "ignore _" rule could be ported over to gofmt sometime soon?
Would be happy to work on a pull request for this.
The text was updated successfully, but these errors were encountered:
gofmt is not part of the go tool and the desired behavior of the go tool is nowhere
specified to apply to gofmt. Use instead, for example,
$ go fmt ./...
It works as expected, ie. it ignores directories starting with the underscore character.