profile
viewpoint

Ask questionsconfusing error message "File is not goimports-ed (goimports)"

A file not being "goimports-ed" is a little confusing. Can we adjust this error message to something a little clearer like "File has not been formatted (goimports)"

golangci/golangci-lint

Answer questions vtopc

@bcomnes, import statement != goimports, looks like the tool should be renamed, not a message.

In addition to fixing imports, goimports also formats your code in the same style as gofmt

useful!

Related questions

please surpport ignore someOne fuction's igored error hot 1
Setting GO111MODULE=on for golangci.com hot 1
golangci-lint "DecodeRune not declared by package utf8" with golang 1.13 hot 1
Cannot `go get` due to invalid pseudo-version hot 1
go get cmd/golangci-lint fails on Go 1.13 (tip) which uses proxy.golang.org (HTTP error 410 Gone) hot 1
Install golangci-lint locally using Windows hot 1
go get cmd/golangci-lint fails on Go 1.13 (tip) which uses proxy.golang.org (HTTP error 410 Gone) hot 1
Golangci-lint Incompatibility with newer versions of Go? hot 1
panic on bodyclose hot 1
concurrent map access on 1.17.1 hot 1
[Feature] TODO/FIXME linter hot 1
Failed to build golangci-lint v1.17.1 when enable GO111MODULE hot 1
Build errors using Go 1.13 hot 1
BUG: failed run hot 1
golangci-lint "DecodeRune not declared by package utf8" with golang 1.13 hot 1
source:https://uonfu.com/
Github User Rank List