taiki-e / cargo-llvm-cov

Cargo subcommand to easily use LLVM source-based code coverage (-C instrument-coverage).
Apache License 2.0
933 stars 57 forks source link

Ignore cargo registry from docker image #104

Closed nim65s closed 2 years ago

nim65s commented 2 years ago

Hi,

When using this project inside the official rust docker image, the coverage report include stuff from /usr/local/cargo/registry/src/.

I'm not sure how to read the exclude regex in https://github.com/taiki-e/cargo-llvm-cov/blob/36866e5bd9e6e2f493b9bf8b7ad12e01a13b2217/src/main.rs#L541 so I don't know if it's just me doing something wrong or not.

Is there a way to exclude everything from this path ?

taiki-e commented 2 years ago

Fixed in v0.1.12. (#105)

nim65s commented 2 years ago

Perfect, thanks !