trailofbits / dylint

Run Rust lints from dynamic libraries

Home Page:https://blog.trailofbits.com/2021/11/09/write-rust-lints-without-forking-clippy/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect output when two different lint libs being executed consecutively

EFanZh opened this issue · comments

Suppose I have two lint libraries in a workspace:

[workspace.metadata.dylint]
libraries = [{ path = "crates/my-lint-0" }, { path = "crates/my-lint-1" }]

If I run cargo dylint with these two different libraries consecutively, the second run will output the same result as the first one:

$ cargo dylint --lib my-lint-0
(some output)
$ cargo dylint --lib my-lint-1
(the same output from previous run)

I expect the second run should generate a different output.

That sounds really annoying. I'll make fixing this a priority.

Fixed by #866 and released in 2.4.3. Please let me know if you have any problems.

Thanks a lot for reporting!