Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to exclude all generated files #15

Open
fzerorubigd opened this issue Dec 26, 2018 · 1 comment · May be fixed by #23
Open

Option to exclude all generated files #15

fzerorubigd opened this issue Dec 26, 2018 · 1 comment · May be fixed by #23

Comments

@fzerorubigd
Copy link

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 fzerorubigd changed the title Option to eclude all generated files Option to exclude all generated files Dec 26, 2018
@dave
Copy link
Owner

dave commented Jan 5, 2019

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

breml added a commit to breml/courtney that referenced this issue Mar 28, 2022
@breml breml linked a pull request Mar 28, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants