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

RemoveScala3OptionalBraces: () to fewer braces #4515

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

kitbellew
Copy link
Collaborator

No description provided.

Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor nitpick. Otherwise LGTM

@@ -3853,6 +3853,11 @@ The section contains the following settings (available since v3.8.1):
- will only apply the rewrite if the cumulative span of all visible
(non-whitespace) tokens within the argument is between the two values
- this rule is disabled if `fewerBracesMaxSpan == 0`
- (since v3.8.4) `fewerBracesParensToo`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- (since v3.8.4) `fewerBracesParensToo`
- (since v3.8.4) `alsoParens`

wouldn't be enough? Since it's already removeOptionalBraces.fewerBracesParensToo

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will that not be confusing? it only works for fewer braces, not for any other potential case involving optional braces.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ach right, mit be confusing. Nevermind then

@kitbellew kitbellew merged commit 6988979 into scalameta:main Nov 7, 2024
21 checks passed
@kitbellew kitbellew deleted the 4515 branch November 7, 2024 10:37
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