I’ve got clippy installed and apparently working but when I run it, it produces no warnings:
0 (master) ./rust/test1 $ cargo clippy Finished dev [unoptimized + debuginfo] target(s) in 0.03s 0 (master) ./rust/test1 $
I decided it was possible (though highly unlikely!) my code had no lint in it so, after reviewing https://github.com/rust-lang-nursery/rust-clippy#usage, I inserted an example lint called “absurd_extreme_comparisons”, where I do
vec.len() <= 0, re-running clippy still produced no warnings.
According to the read.me, the linty code I added falls under the category of:
clippy_correctness (code that is just outright wrong or very very useless)
I didn’t see anything in the readme that explained exactly how to turn this on. So I tried modifying one of my source files using the description under “Allowing/denying lints” to see if that enabled it:
Again no luck… help?