rust-lang / rust-clippy

A bunch of lints to catch common mistakes and improve your Rust code. Book: https://doc.rust-lang.org/clippy/
https://rust-lang.github.io/rust-clippy/
Other
11.28k stars 1.52k forks source link

Configuration for linting in external macros #4955

Open llogiq opened 4 years ago

llogiq commented 4 years ago

Some lints should usually activate only in internal code, yet people might want them to lint code from external macros, too.

We want to give them a way to configure clippy to select the lints that should also check external macro code.

basil-cow commented 4 years ago

Besides obvious features like whitelisting/blacklisting external crates, I think it would be nice to have an option to lint macros from crates, paths to which are local in Cargo.toml.