actions-rs/grcov

Request for adding exclusion settings to the config file.

unageek opened this issue · 1 comments

Do the checklist before filing an issue:

Motivation

I want the --excl-* options added in grcov v0.5.14 (mozilla/grcov#416) to be mapped to grcov.yml so that one can exclude #[derive(...)], mod tests { ... }, etc. from coverage analysis.

grcov.yml

excl-line: "#\\[derive\\("
excl-br-line: "#\\[derive\\("
excl-start: "mod tests \\{"
excl-br-start: "mod tests \\{"

I like this feature, and would love (if it's implemented) to have a solid documented example of a set of exclusions (similar to what you give) that would exclude derive code and tests.