-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Remove discard
, remove
, and pop
allowance for loop-iterator-mutation
#12365
Conversation
|
code | total | + violation | - violation | + fix | - fix |
---|---|---|---|---|---|
B909 | 17 | 17 | 0 | 0 | 0 |
@carljm - Would you mind taking a look at the ecosystem checks and judging whether they're false positives? |
ded5f3c
to
12284ac
Compare
The The I can't easily evaluate the On the whole, I don't personally feel like these ecosystem results are a convincing reason not to broaden the rule. The patterns caught by this expanded rule are not safe in the common case of builtin data structures. They might be safe, in some cases, for some custom data structures that implement iteration differently. |
Awesome, thank you! |
12284ac
to
3bf73c7
Compare
Summary
Pretty sure this should still be an error, but also, I think I added this because of ecosystem CI? So want to see what pops up.
Closes #12164.