Skip to content

Consider configuring Clippy #848

Closed
Closed
@vipentti

Description

@vipentti

According to rust-lang/rust-clippy#configuration:

Some lints can be configured in a TOML file named clippy.toml or .clippy.toml. It contains a basic variable = value mapping eg.

We could consider adding Clippy configuration to allow running cargo clippy on rust-analyzer while developing without reporting large number of warnings that are not relevant to rust-analyzer.

For the lints that currently cannot be configured in a TOML file we can ignore those (allow those to report warnings) or add some "global" inner attributes that allow them.

I think ideally running cargo clippy on rust-analyzer should return no warnings / errors even if it means we allow some lints to pass. This could help people trying to contribute with creating more idiomatic solutions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions