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

Add the .gitattributes in order to hide some folders/files from linguist #138

Closed
erikyo opened this issue Jan 20, 2023 · 0 comments · Fixed by #146
Closed

Add the .gitattributes in order to hide some folders/files from linguist #138

erikyo opened this issue Jan 20, 2023 · 0 comments · Fixed by #146

Comments

@erikyo
Copy link
Collaborator

erikyo commented Jan 20, 2023

What problem does this address?

Currently are counted by linguist files that are not really part of this repo, for example the storybook assets folder which uses all the WordPress backend styles or package.json which is a generated file

What is your proposed solution?

add a .gitattributes with an exclusion like the following:

# remove generated / documentation 
package.json linguist-generated=true
/src/stories/** linguist-vendored=true
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

Successfully merging a pull request may close this issue.

1 participant