Go feature: Modernized go fix
39 points by cgrinds
39 points by cgrinds
This has been available as a CLI included with gopls before but it’s great to see this shipped with Go.
It is aware of the go version in go.mod so it will only modernize “up to” that version.
Currently, there's no way to suppress specific analyzers for certain files or sections of code.
I wish go would standardize a comment that implements a suppression for warnings across all programs like fix, vet, gopls, etc. Ideally it would work for every external linting/tree walking analysis program (errcheck, staticcheck, nilaway, etc.)
The fact that many tools support this indicates the demand signal. The fact that there's no standard and the official tools lack such capabilities makes it incredibly frustrating to navigate.
//goignore {{tool}} {{ code }} {{reason}}
bloop mapsloop
Those sure are names.