-
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
[refurb
] - add bool-literal-compare
with fix (FURB149
)
#9539
Conversation
cebe846
to
cf1d0a4
Compare
|
code | total | + violation | - violation | + fix | - fix |
---|---|---|---|---|---|
FURB149 | 1673 | 1673 | 0 | 0 | 0 |
Formatter (stable)
✅ ecosystem check detected no format changes.
Formatter (preview)
✅ ecosystem check detected no format changes.
What overlap does this have with |
Hrm, in theory, FURB149 could fix it before E712 fixes it, or, E712 fixes it and then FURB149 fixes it afterward. |
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.
This looks pretty similar to true-false-comparison
, do you mind comparing the two rules?
Ugh, sorry, I missed @tjkuson comment 🤦 |
But do you know if the rules catch the same cases, @diceroll123? |
0d29923
to
9b3d79b
Compare
3140bd2
to
dd1cd62
Compare
Thanks @diceroll123 for working on this PR and writing up the difference to I understand that this rull and
I'm happy to check in with the team to see what they think of adding an option to |
Summary
Add
bool-literal-compare
(FURB149
) with fixSee: #1348
Test Plan
cargo test