-
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
Pack of fuzzer Autofix/Infinite loop errors #7455
Comments
Ruff 0.0.290 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
|
Ruff 0.0.290 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
|
Ruff 0.0.290 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
|
Ruff 0.0.290 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
|
Ruff 0.0.290 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
|
Ruff 0.0.290 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
|
Ruff 0.0.290 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
|
Ruff 0.0.290 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
|
Ruff 0.0.290 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
|
Ruff 0.0.290 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
|
Ruff 0.0.290 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
|
Ruff 0.0.290 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
|
Ruff 0.0.290 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
|
Ruff 0.0.290 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
|
Ruff 0.0.290 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
|
Ruff 0.0.290 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
|
Ruff 0.0.290 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
|
Ruff 0.0.290 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
|
Ruff 0.0.290 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
|
Ruff 0.0.290 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
|
Ruff 0.0.290 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
|
Ruff 0.0.290 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
|
Ruff 0.0.290 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
|
Ruff 0.0.290 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
|
Ruff 0.0.290 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
|
Ruff 0.0.290 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
|
## Summary We should really be doing this anywhere we _replace_ an expression. See: #7455.
Ruff 0.0.291 (latest changes from main branch)
file content:
error
|
Ruff 0.0.291 (latest changes from main branch)
file content:
error
|
Ruff 0.0.291 (latest changes from main branch)
file content:
error
|
## Summary This wasn't necessary in the past, since we _only_ applied this rule to bodies that contained two statements, one of which was a `pass`. Now that it applies to any `pass` in a block with multiple statements, we can run into situations in which we remove both passes, and so need to apply the fixes in isolation. See: #7455 (comment).
Ruff 0.0.291 (latest changes from main branch)
file content:
error
|
Ruff 0.0.291 (latest changes from main branch)
file content:
error
|
**Summary** The `value` of the `FStringMiddle` for `f"""}}a�b"""` is `}a�b`, i.e. the curly brace escaping is decoded. If we iterate over string this gives us false indices causing exploding fixes for PLE251 rules (PLE2510, PLE2512, PLE2513, PLE2514, PLE2515). Instead, we now use the source range. Handles #7455 (comment) Handles #7455 (comment) **Test Plan** Minimized fuzzing cases as fixtures.
**Summary** The `value` of the `FStringMiddle` for `f"""}}a�b"""` is `}a�b`, i.e. the curly brace escaping is decoded. If we iterate over string this gives us false indices causing exploding fixes for PLE251 rules (PLE2510, PLE2512, PLE2513, PLE2514, PLE2515). Instead, we now use the source range. Handles #7455 (comment) Handles #7455 (comment) **Test Plan** Minimized fuzzing cases as fixtures.
**Summary** The `value` of the `FStringMiddle` for `f"""}}a�b"""` is `}a�b`, i.e. the curly brace escaping is decoded. If we iterate over string this gives us false indices causing exploding fixes for PLE251 rules (PLE2510, PLE2512, PLE2513, PLE2514, PLE2515). Instead, we now use the source range. Handles #7455 (comment) Handles #7455 (comment) **Test Plan** Minimized fuzzing cases as fixtures.
Ruff 0.0.292 (latest changes from main branch)
file content:
error
|
Ruff 0.0.292 (latest changes from main branch)
file content:
error
|
Ruff 0.0.292 (latest changes from main branch)
file content:
error
|
Ruff 0.0.292 (latest changes from main branch)
file content:
error
|
That last one is "working as intended", but it's not a useful user-facing message. |
Ruff 0.0.292 (latest changes from main branch)
file content:
error
|
Ruff 0.0.292 (latest changes from main branch)
file content:
error
|
Ruff 0.0.292 (latest changes from main branch)
file content:
error
|
Ruff 0.0.292 (latest changes from main branch)
file content:
error
|
Ruff 0.0.292 (latest changes from main branch)
file content:
error
|
(latest changes from main branch)
file content:
error
|
Most of the problems that occur in the regular code have been fixed, and the rest, are usually variations of not very correct code. So now I'll try to add to #8402 the errors that occur in the regular code |
The text was updated successfully, but these errors were encountered: