-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Put short case lists on a single line #3
Comments
@josharian could you expand a bit on "short"? For example, case lists that fit in a single line of less than 40 or 60 characters? Also, do you know of any other cases where gofmt collapses many lines into one? I can't think of one off the top of my head. |
What does "long" mean in #2? gofumpt is still an experimental tool. I say we pick something, conservative if you prefer, and then iterate on it when we find false negatives and/or false positives.
Nope. |
Agreed; that's been my approach so far in #2. I was only asking in case you had a better idea in mind :) |
yay, thanks! |
I’d love something like
https://go-review.googlesource.com/c/go/+/7593
and
https://go-review.googlesource.com/8050
But a bit more aggressive. I’ve been manually cleaning up excessive vertical whitespace in the compile for years because people were nervous about it.
The text was updated successfully, but these errors were encountered: