-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[flake8-simplify
] Avoid double negations (SIM103
)
#15562
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 |
---|---|---|---|---|---|
SIM103 | 16 | 8 | 8 | 0 | 0 |
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.
Thanks! This looks great, but let's gate it behind preview
in case there's something we're missing. After doing so, you'll have to add a note to the documentation about the fix behavior under preview.
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.
Great, thank you!
crates/ruff_linter/src/rules/flake8_simplify/rules/needless_bool.rs
Outdated
Show resolved
Hide resolved
## Summary This PR stabilizes the fixes improvements made in #15562 (released with ruff 0.9.3 in mid January). There's no open issue or PR related to the changed fix behavior. This is not a breaking change. The fix was only gated behind preview to get some more test coverage before releasing.
## Summary This PR stabilizes the fixes improvements made in #15562 (released with ruff 0.9.3 in mid January). There's no open issue or PR related to the changed fix behavior. This is not a breaking change. The fix was only gated behind preview to get some more test coverage before releasing.
## Summary This PR stabilizes the fixes improvements made in #15562 (released with ruff 0.9.3 in mid January). There's no open issue or PR related to the changed fix behavior. This is not a breaking change. The fix was only gated behind preview to get some more test coverage before releasing.
Summary
Related to this comment at #6184.
Test Plan
cargo nextest run
andcargo insta test
.