Linguist Languages Not Showing Correctly #7118
-
My Repository: https://github.com/derekvmcintire/acs-next-api
Steps I have taken:
*.js linguist-language=JavaScript Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You've not stated what you believe is wrong with how things are showing. What are you expecting to see? From a quick look, everything looks good to me.
There's actually one file, If you don't want this to count, you'll need to use an override. Something like: prisma/docs/**/* linguist-documentation ... will mark the directory as documentation and Linguist won't count the contents and will give you: ➜ github-linguist .
53.75% 30470 TypeScript
45.60% 25852 JavaScript
0.65% 368 CSS
➜ As for the rest, for a start you don't need the override as the behaviour you're setting is the default. This is the analysis if I remove your ➜ github-linguist acs-next-api/
96.61% 1616326 HTML
1.82% 30470 TypeScript
1.55% 25852 JavaScript
0.02% 368 CSS
➜
These will be included in the JavaScript count
This will be included in the TypeScript count
There is one file and it's insignificantly small in terms of bytes of code for the whole repo so the sidebar doesn't show it.
JSON files are data and not included in counts by default. You'll need to implement an override if you want this to count. So all in all, things are behaving as expected. What are you expecting to see? |
Beta Was this translation helpful? Give feedback.
-
Got it, thanks! I was expecting html to be 0% since there were no files showing. |
Beta Was this translation helpful? Give feedback.
You've not stated what you believe is wrong with how things are showing. What are you expecting to see?
From a quick look, everything looks good to me.
There's actually one file,
prisma/docs/index.html
, and it's massive at 1.6MB. This is too big for the search to index (as documented), hence you get no results.If you don't want this to count, you'll need to use an override. Something like:
... will mark the directory as documentation and Linguist won't count the contents and will give you: