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

Router: add NL split in select chain for src=keep #4021

Merged
merged 2 commits into from
May 20, 2024

Conversation

kitbellew
Copy link
Collaborator

With binpack.callSite=oneline, we are assuming that we can always break before a select dot; for source=keep, it wasn't true so let's fix it. However, penalize this newline split so that it's only used sparingly.

kitbellew added 2 commits May 19, 2024 16:33
With binpack.callSite=oneline, we are assuming that we can always break
before a select dot; for source=keep, it wasn't true so let's fix it.

However, penalize this newline split so that it's only used sparingly.
@kitbellew kitbellew requested a review from tgodzik May 19, 2024 23:55
@kitbellew kitbellew merged commit 5ee5a72 into scalameta:master May 20, 2024
9 checks passed
@kitbellew kitbellew deleted the 4021 branch May 20, 2024 12:04
kitbellew added a commit to kitbellew/scalafmt that referenced this pull request Sep 27, 2024
kitbellew added a commit to kitbellew/scalafmt that referenced this pull request Sep 27, 2024
kitbellew added a commit that referenced this pull request Sep 27, 2024
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

Successfully merging this pull request may close these issues.

2 participants