Closed
Description
cargo clippy -- -W help
seems to runclippy
, 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 torustc -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.