kennytm / cargo-kcov

Cargo subcommand to run kcov to get coverage report on Linux
127 stars 20 forks source link

Use CARGO_HOME as default --exclude-pattern #7

Closed BenjaminGill-Metaswitch closed 7 years ago

BenjaminGill-Metaswitch commented 7 years ago

Running cargo kcov in an environment where CARGO_HOME has been set to something non-standard, it would be nice if the --exclude-pattern was set correctly.

I think this can be straightforwardly fixed by setting the default --exclude-pattern to the environment variable CARGO_HOME.

BenjaminGill-Metaswitch commented 7 years ago

Please shout if you think this is wrong. I'll otherwise have a look at submitting a PR.