-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
] Implement redundant-log-base
(FURB163
)
#8842
Conversation
|
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.
Nice! This lgtm except the rule needs to go through preview.
Co-authored-by: Zanie Blue <[email protected]>
IMO the term "redundant" is not quite right (except the |
Yeah, that's fair. I did think about which name to use when porting the rule, but never found one I fully liked (it has to both describe both the I also tried to make the rule message be explicit with what its recommendation is, to guard against confusion.
Happy for name to changed, though. I'm not a huge fan of it. Also, for what it's worth, the corresponding refurb rule EDIT: Maybe EDIT 2: 'Accuracy', not 'precision', is the correct term to use here. |
I think the name is fine. You could use |
Got it on the name. So my only nit is: in the rule description, replace "precise" with "accurate"; both |
crates/ruff_linter/src/rules/refurb/rules/redundant_log_base.rs
Outdated
Show resolved
Hide resolved
3e64f5d
to
7a726c6
Compare
7a726c6
to
2144a6a
Compare
Summary
Implement
simplify-math-log
asredundant-log-base
(FURB163
).Auto-fixes
to
Related to #1348.
Test Plan
cargo test