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 files explicitly using .gitignore #8

Open
joseluisq opened this issue Feb 26, 2018 · 4 comments
Open

Skip files explicitly using .gitignore #8

joseluisq opened this issue Feb 26, 2018 · 4 comments

Comments

@joseluisq
Copy link

It would be great if gocloc could skip files explicitly excluded by a versioning tool like git via .gitignore file.

@fenollp
Copy link

fenollp commented Feb 27, 2018

@erinok
Copy link

erinok commented Mar 27, 2018

This would be awesome. I'd also lobby for having the ability to not obey .gitignore, and the ability to obey a special .clocignore file. (Basically, what fd does: https://github.com/sharkdp/fd)

@thijssmudde
Copy link

I'd need this badly to find out exactly how productive I am as a software developer. Its a kind of gamification for me, so I can set targets of writing 100 LOC each day

@noahgreenbaum
Copy link

We came across gocloc and had the same need - it turns out git ls-files -z | xargs -0 gocloc works very well, and handles filenames with spaces just fine.

Credit to: Stack Overflow and cloc Issue #49.

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

5 participants