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

Skip generated files #1

Closed
roskakori opened this issue Aug 18, 2016 · 1 comment
Closed

Skip generated files #1

roskakori opened this issue Aug 18, 2016 · 1 comment
Milestone

Comments

@roskakori
Copy link
Owner

Goal: generated files are excluded from the analysis.

In order to detect generated files, a logic similar to sloccount can be used:

Detecting automatically generated files is not easy, and it's quite conceivable that it won't detect some automatically generated files. The first 15 lines are examined, to determine if any of them include at the beginning of the line (after spaces and possible comment markers) one of the following phrases (ignoring upper and lower case distinctions): generated automatically'',automatically generated'', this is a generated file'',generated with the (something) utility'', or ``do not edit''.

Source: http://www.dwheeler.com/sloccount/sloccount.html, section "Designer's notes".

@roskakori
Copy link
Owner Author

Implemented with v0.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant