-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Stabilize for-loop-set-mutations
(FURB142
)
#18557
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
|
code | total | + violation | - violation | + fix | - fix |
---|---|---|---|---|---|
FURB142 | 25 | 25 | 0 | 0 | 0 |
Linter (preview)
✅ ecosystem check detected no linter changes.
0370d8a
to
040fb6b
Compare
040fb6b
to
9252447
Compare
Not sure if it's a blocker, but there's a new issue on this one: #18575 |
9252447
to
829acf4
Compare
58c3afd
to
8316b90
Compare
Hmm... I think it could be a blocker, actually. The fix would be to check whether the loop variable is used outside of the loop (this is already done in But I think this ends up being a fairly significant change if someone has a lot of violations in the same scope that re-use the loop variable name. (For example - our test fixture fails to converge after 10 iterations if we make this behavior change). Not sure how much of a big deal that is in practice, but probably worth delaying stabilization until that behavior has sat in preview for a round. |
No description provided.