Proposal: Use & Fix pedantic
and nursery
lints across the codebase
#3393
Replies: 4 comments
-
I'm open to enabling more specific clippy lints, but definitely not the whole |
Beta Was this translation helpful? Give feedback.
-
And just to expand on a few questions:
That's best I think, if we decide the lint isn't worth it, it's easier to remove it that way and it's clearer in review, what's happening and why.
We have already breaking changes merged in main, but I'd be cautious with this. I think separate PR for breaking changes would be best. |
Beta Was this translation helpful? Give feedback.
-
I've made a draft PR: #3394. Should we move the discussion there (and close this one)? |
Beta Was this translation helpful? Give feedback.
-
Closing this since the discussion has moved to the individual PRs' discussions. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I've looked into how difficult it would be to add the
pedantic
andnursery
lints to theCargo.toml
, and then fix all the resulting warnings. Personally, I believe this could greatly improve readability and maintainability of the project. I've made significant progress, but before I continue further, I would like to ask a few questions:pedantic
andnursery
warnings?pedantic
ornursery
) lints that I should leave untouched?pedantic
/nursery
) lints you'd like me to try to address while I'm at it?Some lints (e.g.
missing_const_for_fn
) only break API compatibility if the lint changes are removed later. From the documentation:Others (e.g.
fn_params_excessive_bools
) immediately break API compatibility if applied to public items.Are these OK even though they can break API compatibility? Should I leave them in a separate PR?
Thank you for maintaining Axum! Would love to hear your feedback on this.
Beta Was this translation helpful? Give feedback.
All reactions