Rust-clippy: force full re-clippy

Created on 3 Mar 2018  路  6Comments  路  Source: rust-lang/rust-clippy

I want run clippy on my CI server and get every time all warnings,
not only in changed projects.
Also I want to cache "target" directory between run of cargo build,
because of compilation too slow.

But I don't see how it possible with current clippy:

$ cargo +nightly clippy
warning:
warning:
warning:
$ cargo +nightly clippy
$ lib: foo
    Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
test: test_foo
    Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs

as you see the second run of clippy gives nothing,
And there is no option like --force, as workaround I use find . -name "*.rs" -exec touch {} \;,
it is better then remove target or cargo clean, but still cause also rebuild of crate in the next cargo +nigtly test

Most helpful comment

tracked in #4612

on nightly you can use cargo clippy -Zunstable-options

All 6 comments

Yep, this is annoying - the purpose of running a linter is to emit lints on every run :)

My local tests say yes. Reopen a new issue if it persists on your system

This is still an issue.

Me too. Is there any explicit options to force re-run?

tracked in #4612

on nightly you can use cargo clippy -Zunstable-options

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dtolnay picture dtolnay  路  20Comments

casey picture casey  路  19Comments

Manishearth picture Manishearth  路  20Comments

Manishearth picture Manishearth  路  26Comments

mikerite picture mikerite  路  17Comments