You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UPDATE Turns out this is not a bug but missing feature and unclear documentation, so converting to a docs improvement ticket.
Please clarify what lints/features are available in clippy.toml, and that most regular lints cannot be enabled/disabled in it. Relevant docs locations (might be more?):
I was unable to configure clippy.toml to include some pedantic lints as described in the main readme. It seems clippy.toml only supports a subset of the all available clippy lints.
Reproducer
I created a clippy.toml in the root of the crate with this content (I also tried it with - instead of the _ to make sure)
default_trait_access = true
I expected to see this happen:
cargo clippy should have produced some lint suggestions.
Hey 👋, the config file is only for config values and not lints themselves. There is an issue #6625 for having a config file which allows the configuration of lint levels.
UPDATE Turns out this is not a bug but missing feature and unclear documentation, so converting to a docs improvement ticket.
Please clarify what lints/features are available in
clippy.toml
, and that most regular lints cannot be enabled/disabled in it. Relevant docs locations (might be more?):Original post
Summary
I was unable to configure
clippy.toml
to include some pedantic lints as described in the main readme. It seems clippy.toml only supports a subset of the all available clippy lints.Reproducer
I created a
clippy.toml
in the root of the crate with this content (I also tried it with-
instead of the_
to make sure)default_trait_access = true
I expected to see this happen:
cargo clippy
should have produced some lint suggestions.Instead, this happened:
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: