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

Add an option to ignore generated files? #98

Open
ainar-g opened this issue Dec 5, 2024 · 0 comments
Open

Add an option to ignore generated files? #98

ainar-g opened this issue Dec 5, 2024 · 0 comments

Comments

@ainar-g
Copy link

ainar-g commented Dec 5, 2024

Go code has a convention on how to mark code as generated. Perhaps, some other languages too. It would be nice to be able to exclude generated code from the statistics.

Alternatively, there could be an option to exclude files by a regexp of the file content, so that people could do something like:

gocloc --exclude-containing='^// Code generated .* DO NOT EDIT\.$' ./src/
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

No branches or pull requests

1 participant