Linter for stable Rust

Are there any good linters for stable version of Rust similar to clippy?

1 Like

No, as the lints themselves are compiler plugins. While it might be possible to precompile a stand-alone clippy with statically linked libsyntax (et.al.), I haven't seen it (it's a lot of work probably).

Please note that rustc itself already has some lints included and not all of them are enabled by default. Just have a look at rustc -W help, the first 10 or so are "allow" by default, i.e. disabled.

2 Likes

It should be noted though that with rustup it is really easy to develop in nightly and ship in stable.

3 Likes

There are plans to include clippy as something that can be installed via rustup, so it can be used without installing nightly.