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

Respect .gitattributes language and vendored definitions #173

Open
875014 opened this issue Oct 2, 2024 · 1 comment
Open

Respect .gitattributes language and vendored definitions #173

875014 opened this issue Oct 2, 2024 · 1 comment

Comments

@875014
Copy link

875014 commented Oct 2, 2024

In a .gitattributes file it is possible to map language names to filename extensions, e.g.

*.fs linguist-language=glsl
*.vs linguist-language=glsl

It is also possible to specify which directories are not to be counted by language analyzers, such as the one on this site.

**/vendor/** linguist-vendored
lib/json.h linguist-vendored

Pygount could respect these settings (and maybe some more attributes could be useful too, these two are the only ones I've used).

That's my suggestion.

@875014
Copy link
Author

875014 commented Oct 3, 2024

Supporting gitignores would be helpful too, especially with CMake.

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

1 participant