-
Notifications
You must be signed in to change notification settings - Fork 435
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
Enable various new clippy lints #1025
base: rust-next
Are you sure you want to change the base?
Changes from 1 commit
3754849
82157b8
bbc6d1c
8f4700d
a764f0a
2118d15
b2d5dbc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
# Parameters passed to rust tools (`rustc`, `clippy`, `rustdoc`) whenever they | ||
# are run. | ||
|
||
# Standard configuration | ||
--edition=2021 | ||
-Zbinary_dep_depinfo=y | ||
|
||
# Standard rust lints | ||
-Dnon_ascii_idents | ||
-Drust_2018_idioms | ||
-Dunreachable_pub | ||
-Dunsafe_op_in_unsafe_fn | ||
|
||
# Documentation lints | ||
-Wmissing_docs | ||
-Drustdoc::missing_crate_level_docs | ||
|
||
# Clippy groups | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A different patch series should split these into individual lints, unless there is a way to prevent Clippy from breaking compilation due to newer lints. Perhaps we should enable individual them with |
||
-Dclippy::complexity | ||
-Dclippy::correctness | ||
-Dclippy::perf | ||
-Dclippy::style | ||
-Dclippy::suspicious | ||
|
||
# Clippy lints from pedantic | ||
-Dclippy::mut_mut | ||
-Dclippy::needless_bitwise_bool | ||
-Dclippy::needless_continue | ||
|
||
# Clippy lints that we only warn on | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ideally, we would explain why we only warn on, but we can do that later. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well I didn't exactly know the reasoning :) what is it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For Also, perhaps consider if others should be |
||
-Wclippy::dbg_macro |
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.
Perhaps "
rustc
lints"?