Skip to content

Lint if workspace lints are available but not inherited #15579

@epage

Description

@epage

What it does

See also rust-lang/rust-clippy#11933

Advantage

  • Avoid accidents in forgetting to inherit

Drawbacks

  • There may be cases where avoiding inheritance is intentional

Example

[workspace]

[workspace.lints]

[package]

Could be written as:

[workspace]

[workspace.lints]

[package]

[lints]
workspace = true

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-new-lintArea: new lintS-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions