Go feature: Modernized go fix

39 points by cgrinds


mxey

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.

bryfry

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}}
FedericoSchonborn

bloop mapsloop

Those sure are names.