Skip to content

force full re-clippy #2498

Closed
Closed
@davemilter

Description

@davemilter

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions