-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Don't lint blocks in closures for blocks_in_conditions #12805
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
Conversation
I think this also basically (indirectly) fixes #12281 , right? Last time I looked into that issue it gets to the code that's deleted here because |
Yeah looks like it, there's also an extra context check for the main part of the lint that wasn't checked for the closure checking |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Don't lint blocks in closures for blocks_in_conditions Seemed like an outlier for the lint which generally caught only the syntactically confusing cases, it lints blocks in closures but excludes closures passed to iterator methods, this changes it to ignore closures in general changelog: none
This comment was marked as resolved.
This comment was marked as resolved.
2c8f91a
to
7a49ad4
Compare
☔ The latest upstream changes (presumably #12897) made this pull request unmergeable. Please resolve the merge conflicts. |
7a49ad4
to
b21ee38
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet, thanks!
@bors r+ |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Seemed like an outlier for the lint which generally caught only the syntactically confusing cases, it lints blocks in closures but excludes closures passed to iterator methods, this changes it to ignore closures in general
changelog: none