Rust has a tool called, you guessed it, Clippy, that does very similar things to what you suggest: https://github.com/rust-lang/rust-clippy
The Rust compiler exposes a lot of information, so it's actually quite powerful in my experience.
The Rust compiler exposes a lot of information, so it's actually quite powerful in my experience.