sqs / goreturns

A gofmt/goimports-like tool for Go programmers that fills in Go return statements with zero values to match the func return types
Other
530 stars 55 forks source link

Always ignore the build tags #33

Open rakyll opened 7 years ago

rakyll commented 7 years ago

goreturns do not ignore the build tags, and causing editor plugins to skip formatting the Go files under a build tag (https://github.com/Microsoft/vscode-go/issues/877).

goreturns is an editing tool and should always ignore the build tags.

sqs commented 7 years ago

Agreed. I think this is a quick fix. I will take a look this weekend. If anyone else wants to submit a PR in the meantime, I would happily merge it.