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

RewriteTrailingCommas: handle optional braces case #4059

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

kitbellew
Copy link
Collaborator

Don't check equality of owners of comma and closing delimiter, it's no longer guaranteed. Also, inconsistent with the check in FormatWriter so that could lead to further non-idempotency. Fixes #4058.

Don't check equality of owners of comma and closing delimiter, it's no
longer guaranteed. Also, inconsistent with the check in FormatWriter so
that could lead to further non-idempotency.
@kitbellew kitbellew requested a review from tgodzik June 17, 2024 13:25
@kitbellew kitbellew merged commit e29d3b8 into scalameta:master Jun 17, 2024
9 checks passed
@kitbellew kitbellew deleted the 4058 branch June 17, 2024 14:50
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.

Idempotence issue when trailingCommas is "always" and omitting braces
2 participants