-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
contrasted_opening_brace
false positives in trailing closures and else if
statements
#5752
Closed
2 tasks done
Comments
buresdv
changed the title
Aug 14, 2024
contrasted_opening_brace
false positives in trailing closures with parameterscontrasted_opening_brace
false positives in trailing closures and else if
statements
@SimplyDanny you're the man |
@buresdv: Formatting rules often rely on heuristics and so does this rule now especially in terms of the fixes I made to cover your reported misbehavior. So you might find other issues afterwards which we need to address in an iterative manner. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
New Issue Checklist
Feature or Enhancement Proposal
I'm using the new
contrasted_opening_brace
rule. I ran across a potential false positive (at least in my opinion) when this rule is used on trailing closures that include parameters.Examples include (lifted straight from my codebase):
I'd expect this rule to not consider these examples violations. Perhaps there could be a setting that would not flag these.
The text was updated successfully, but these errors were encountered: