Skip to content

cargo clippy -- -W help runs clippy #6122

Closed
rust-lang/rust
#77671
@flip1995

Description

@flip1995

cargo clippy -- -W help seems to run clippy, so it takes a while on a first build and, of course, it requires a project. Would it be possible to print the available lints and quit, similar to rustc -W help?

Context: in rust-analyzer we'd like to offer code completions for the various lints, but the only way to get them is to download http://rust-lang.github.io/rust-clippy/master/lints.json.

Originally posted by @lnicola in #5385 (comment)

Even though the -Whelp thing is unstable, it shouldn't have to run Clippy on a crate to print out the help message with all lints.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thinggood first issueThese issues are a good way to get started with Clippy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions