Add goimports to .golangci.yaml and fix lint errors#187
Add goimports to .golangci.yaml and fix lint errors#187Troy Chiu (troychiu) wants to merge 1 commit into
Conversation
b2299b8 to
db5f3b8
Compare
I'm not sure if I fully understood your point, but using |
Hmm, does that change anything else? We have |
|
There was a reason I did gofmt and not goimports, but I can't recall it. I do not like the idea of --fix being the norm because I have frequently disagreed with the linters. Is the goimports linters JUST imports or is it all of gofmt, too. The advantage of update/gofmt.sh is that it does exactly one thing. I don't care if that calls goimports instead (modulo the thing I can't remember) |
Add goimports to
.golangci.yamlto follow Go import organization best practice and fix corresponding lint error.