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

Let badge exclude/include some folders #422

Open
fzyzcjy opened this issue Dec 18, 2023 · 4 comments
Open

Let badge exclude/include some folders #422

fzyzcjy opened this issue Dec 18, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@fzyzcjy
Copy link

fzyzcjy commented Dec 18, 2023

Hi thanks for the project! I want to use it in https://github.com/fzyzcjy/flutter_rust_bridge, but the badge: https://sloc.xyz/github/fzyzcjy/flutter_rust_bridge/?category=lines does not reflect the real case - because I commit the generated code into the git repository as well (because this repo itself is a code generator).

Therefore, it would be great if there can be an option to exclude/include some folders when querying.

@boyter
Copy link
Owner

boyter commented Dec 18, 2023

Probably the easiest way would be to commit a .ignore file which ignores the generated code. At least that's the easiest way that would work right now, and should help with a lot of other tools that support it.

Let me know if that works for you and solves your use case.

@fzyzcjy
Copy link
Author

fzyzcjy commented Dec 19, 2023

@boyter Thank you! It would be great if there could be a file named .scc_ignore or allow customize which ignore file path to use. Because I only want to exclude from line counting, but not from other tools.

@boyter boyter added the enhancement New feature or request label Dec 19, 2023
@boyter
Copy link
Owner

boyter commented Dec 19, 2023

Yep adding a .scc_ignore sounds like the best approach here then.

Although maybe .sccignore would be a better name... ill think on that.

@fzyzcjy
Copy link
Author

fzyzcjy commented Dec 19, 2023

Totally agree! Since .gitignore has no _ as well

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
Status: No status
Development

No branches or pull requests

2 participants