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

Feature Request: --exclude-ext #259

Closed
nemo1e8 opened this issue May 5, 2021 · 1 comment
Closed

Feature Request: --exclude-ext #259

nemo1e8 opened this issue May 5, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@nemo1e8
Copy link

nemo1e8 commented May 5, 2021

There's a feature to include only a certain set of extensions:
-i, --include-ext strings

Would be nice to have an exclude counterpart that would allow you to exclude certain extensions instead. I often want to exclude e.g. text files from the count, and there's no simple way to do that if I want to retain all the other languages.

@boyter boyter added the enhancement New feature or request label May 6, 2021
@boyter boyter closed this as completed in 1a63334 Dec 15, 2021
@boyter
Copy link
Owner

boyter commented Dec 15, 2021

This has been added with the following option,

-x, --exclude-ext strings          ignore file extensions (overrides include-ext) [comma separated list: e.g. go,java,js]

Note that it will override --include-ext, so the following

scc -x go -i go

Would find nothing. You can get it by building from mainline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants