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

Put short case lists on a single line #3

Closed
josharian opened this issue Mar 31, 2019 · 4 comments
Closed

Put short case lists on a single line #3

josharian opened this issue Mar 31, 2019 · 4 comments

Comments

@josharian
Copy link

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.

@mvdan
Copy link
Owner

mvdan commented Mar 31, 2019

@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.

@josharian
Copy link
Author

could you expand a bit on "short"?

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.

Also, do you know of any other cases where gofmt collapses many lines into one?

Nope.

@mvdan
Copy link
Owner

mvdan commented Apr 7, 2019

I say we pick something, conservative if you prefer, and then iterate on it when we find false negatives and/or false positives.

Agreed; that's been my approach so far in #2. I was only asking in case you had a better idea in mind :)

@mvdan mvdan closed this as completed in e34e48b Apr 11, 2019
mvdan added a commit that referenced this issue Apr 12, 2019
@josharian
Copy link
Author

yay, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants