Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/gofmt: unaligned end-of-line comments in switch cases #28057

Open
rillig opened this issue Oct 6, 2018 · 1 comment
Open

cmd/gofmt: unaligned end-of-line comments in switch cases #28057

rillig opened this issue Oct 6, 2018 · 1 comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@rillig
Copy link
Contributor

rillig commented Oct 6, 2018

What version of Go are you using (go version)?

go version go1.11.1 windows/amd64

Does this issue reproduce with the latest release?

yes.

What did you do?

https://play.golang.org/p/hMeljDlfiZJ

What did you expect to see?

When I click Format, all end-of-line comments should be aligned in the same column.

What did you see instead?

The first comment is not aligned with the other ones.

@agnivade agnivade changed the title gofmt: unaligned end-of-line comments in switch cases cmd/gofmt: unaligned end-of-line comments in switch cases Oct 7, 2018
@agnivade agnivade added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Oct 7, 2018
@agnivade agnivade added this to the Unplanned milestone Oct 7, 2018
@agnivade
Copy link
Contributor

agnivade commented Oct 7, 2018

@griesemer

For completeness, it is just between the first case, and the rest of the cases. The later ones are all aligned with each other.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

3 participants