-
Notifications
You must be signed in to change notification settings - Fork 107
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
lint: add extra integer lints, and partially fix some code #3409
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3409 +/- ##
==========================================
- Coverage 78.34% 78.30% -0.04%
==========================================
Files 267 267
Lines 31526 31529 +3
==========================================
- Hits 24698 24690 -8
- Misses 6828 6839 +11 |
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.
I think this is great, not only added more lints for integers but also suggests how to add more. The more we can have is def better. I am unsure if we should open a ticket with that TODO list or if the code text is enough.
I don't think we will add any more lints any time soon. |
Motivation
I thought we might be able to add some lints for risky integer conversions in PR #3401. But it turns out that code is actually needed for now. (Until we do #2211.)
But I thought I should submit the lints that did work.
Solution
Review
Anyone can review this Rust and lint code, it's not urgent or important.
Reviewer Checklist
Follow Up Work
We might want to enable some of these other lints eventually, but it's a very low priority.