courtney icon indicating copy to clipboard operation
courtney copied to clipboard

Option to exclude all generated files

Open fzerorubigd opened this issue 6 years ago • 1 comments

There is a lot of code generator in go, and also there is a convention for the generated code to identify themselves as generated code. sometimes we simply want to skip the coverage for them, so it is a good idea to add a switch to ignore them.

This is very easy to detect see https://github.com/golang/lint/blob/85993ffd0a6cd043291f3f63d45d656d97b165bd/lint.go#L125

fzerorubigd avatar Dec 26 '18 16:12 fzerorubigd

Excluding files based on a regex to apply to all comments might be a useful feature...

dave avatar Jan 05 '19 08:01 dave