-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
C-feature-requestCategory: Feature requestCategory: Feature requestS-triageStatus: PR was triaged and is waiting for an action from a maintainer (closing/moving/... the PR)Status: PR was triaged and is waiting for an action from a maintainer (closing/moving/... the PR)
Description
Problem
Currently I still need a clippy.toml
in the latest stable as I cannot pass arguments to clippy lints like disallowed_methods
in the [lints]
table in the Cargo.toml
. There is prior art with the unexpected_cfgs
lint as that sets check-cfg = [..args]
, but I don't see anything similar for clippy lints that also receive arguments.
Proposed Solution
Add an args
or similar entry to the [lints.specific-lint]
table that allows passing arguments to clippy (or have clippy read from the Cargo.toml
for the configured arguments).
Notes
I believe that like rust-lang/cargo#14521 , there is no support for this currently.
tgross35
Metadata
Metadata
Assignees
Labels
C-feature-requestCategory: Feature requestCategory: Feature requestS-triageStatus: PR was triaged and is waiting for an action from a maintainer (closing/moving/... the PR)Status: PR was triaged and is waiting for an action from a maintainer (closing/moving/... the PR)