Remove discard, remove, and pop allowance for loop-iterator-mutation#12365
Remove discard, remove, and pop allowance for loop-iterator-mutation#12365charliermarsh merged 1 commit intomainfrom
discard, remove, and pop allowance for loop-iterator-mutation#12365Conversation
|
| 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.