You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The grouping seems right, even if it looks off - the commens are just comments, so they aren't considered as declarations. And a lone grouped declaration loses the grouping as it's overkill.
In your first example, // bar = "bar" should not become an inline comment, though. That's a bug.
This is more of a question. The current behavior:
Is it desired ? I would expect
gofumpt
to either keep the parentheses and comments untouched, or to format this way:This is also consistent with the behavior when adding an inline comment:
I have no strong opinion on the matter, I just found it surprising. Feel free to close if this is intended
The text was updated successfully, but these errors were encountered: