x/tools/go/analysis/passes/fieldalignment: suggested fix producing garbled output #43233
Labels
Analysis
Issues related to static analysis (vet, x/tools/go/analysis)
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Refactoring
Issues related to refactoring tools
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
enabled the following analysis after upgrading to gopls
0.6.0
"analyses": {
"fieldalignment": true
}
What did you expect to see?
Following sample code to demonstrate the issue:
applied
fieldalignment
codelens in vscodeWhat did you see instead?
initially I thought that I made a mistake with the comments so I tried the following struct
after applying fieldanalysis codelens to above struct it became garbled too
The text was updated successfully, but these errors were encountered: