Skip to content

Lints with no configuration #8533

Answered by flip1995
BigfootN asked this question in Q&A
Mar 14, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Note that Configuration in Clippy means configuring the lint and not the lint level. The lint level can only be configured in the code or the command line. Discussion about a configuration file for lint levels exists, see rust-lang/cargo#5034.

The configuration that can be done in the clippy.toml file only makes sense for some lints. A good example is the too_many_arguments lint, where you can specify in the clippy.toml file how many arguments you want to allow.

If you find a lint that could benefit from a configuration option, feel free to open an issue about it or ask over on Zulip.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BigfootN
Comment options

Answer selected by BigfootN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants