courtney
courtney copied to clipboard
Exclude generated code from coverage
Fixes #15
Should there be a flag/config option for this? There could be projects interested in coverage of generated code.
Yeah I think running tests on generated code is common... I do it in some of my projects.
@dave No problem, I can add a flag for this. Do you have any preference on the name of the flag? I assume, the default would be to keep the existing behavior for backwards compatibility reasons.
@dave Another question, there are several places, where gofmt
(respectively goimports
and gofumpt
) would change the formatting of the code. I did not commit these changes so far. How do you feel about this?