Skip to content

Allow configuring lints right from Cargo.toml #17201

@nazar-pc

Description

@nazar-pc

I am adding files and directories to the root of the project very conservatively.

Since Cargo.toml already allows to enable/disable lints, it would be natural to be able to configure their options right there rather than needing a separate clippy.toml file.

For example, I'd really like to be able do this:

[workspace.lints.clippy]
unwrap_used = { level = "warn", allow-unwrap-in-tests = true }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions