8000 Add an option to ignore generated files? · Issue #98 · hhatto/gocloc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Add an option to ignore generated files? #98
Open
@ainar-g

Description

@ainar-g

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0