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: fix bp.defnsite=oneline inconsistency bug #4002

Merged
merged 1 commit into from
May 16, 2024

Conversation

kitbellew
Copy link
Collaborator

The code was applying a single-line constraint after a no-break split when we had multiple arguments OR NON-oneline formatting.

Instead, we should we applying this when we had multiple arguments AND oneline formatting, since single-line is the requirement of oneline.

This inconsistency was leading to non-idempotent formatting at times.

The code was applying a single-line constraint after a no-break split
when we had multiple arguments OR NON-oneline formatting.

Instead, we should we applying this when we had multiple arguments AND
oneline formatting, since single-line is the requirement of oneline.

This inconsistency was leading to non-idempotent formatting at times.
@kitbellew kitbellew requested a review from tgodzik May 15, 2024 21:37
@kitbellew kitbellew merged commit 713e9c4 into scalameta:master May 16, 2024
9 checks passed
@kitbellew kitbellew deleted the 4002 branch May 16, 2024 12:18
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