Skip to content

Configure clippy lints further with the [lints] table. #13712

Open
@jalil-salame

Description

@jalil-salame

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: Feature requestS-triageStatus: PR was triaged and is waiting for an action from a maintainer (closing/moving/... the PR)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions