x/tools/cmd/goimports: 21+ chars struct field breaks indentation for next lines #27177
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go version go1.10.3 darwin/amd64
Does this issue reproduce with the latest release?
Yes, as of today.
What operating system and processor architecture are you using (
go env
)?What did you do?
Pay attention to lines 23 and 24 in the following code snippets:
• Correct formatting: https://play.golang.org/p/NHH57Ucegxa
• Incorrect formatting: https://play.golang.org/p/MgCpu-Ux5B5
What did you expect to see?
Values for the struct fields after line 23 should be placed in the same column as line 23.
What did you see instead?
All values for the struct fields after line 23 (which contains a field name with more than 21 characters) are using a different indentation as the previous lines, consequently breaking the formatting for the whole block of code.
The text was updated successfully, but these errors were encountered: