Questions tagged [github-linguist]

Linguist is a ruby library developed and used on GitHub.com to detect blob languages, ignore binary or vendored files, suppress generated files in diffs, and generate language breakdown graphs.

Linguist is a ruby library developed and used on GitHub.com to detect blob languages, ignore binary or vendored files, suppress generated files in diffs, and generate language breakdown graphs.

65 questions
1
vote
2 answers

GitHub, define language for unknown suffix?

I have a repository that has Python source code in it, but the files are suffixed *.pyp. Is there a way to "assign it" to the Python language? (shown in tags, syntax highlighting, etc.) I thought I saw something like this possible in the…
Niklas R
  • 16,299
  • 28
  • 108
  • 203
0
votes
0 answers

How to ignore specific directory for language stats in GitHub?

This is my repo structure: These are the language stats as detected by GitHub, even though this is a full stack app written primarily in Javascript: This is because it is reading the budget directory for language stats. How can I get it to ignore…
0
votes
1 answer

Trying to Override the Linguist attributes on GitHub - TeX language

Git hub has detected my repo to contain mostly TeX Language which is incorrect, it is mostly written in Python with the exception of a couple of .spec files. GitHub Language calculation: I understand that I have to use a .gitattributes file in…
Dmitry
  • 1
  • 1
0
votes
1 answer

My github repository isn't showing up the languages I used

https://github.com/owdx1/Spring-Boot-2.0-BIL344 My repo doesn't show up the languages I used in the code. Am I doing something wrong with my file organization? I've tried to apply the solutions from another questions, yet it didn't help. Thanks :)
0
votes
2 answers

Github is not showing language bar for the repository

Github is not showing language bar for the repository. Repository link : https://github.com/Hiteshk369/Weather-APP My repo consists of three files Html, Css and Js. Help me in fixing this problem! I tried finding the solution for the problem from…
0
votes
0 answers

Cannot specify language in GitHub repository

I know that GitHub automatically determines a repository's language by looking a the type of files in the repository. It is however supposed to be possible to override this by editing the .gitattributes file in the repository's root, as suggested in…
Arne M
  • 87
  • 8
0
votes
0 answers

GitHub Linguist does not see sub-folders?

So, I have a project that is around 80% Java and 20% Python. It is both by the number of lines of code and by their actual value. However, this is the language breakdown that GitHub detects: Language Breakdown I assumed that it might have to do with…
0
votes
1 answer

Linguist Documentation not working in github?

I recently studied about .gitattributes specifically linguist-documentation and this problem But it does not work for me in this repo. It still counts HTML, CSS, and JavaScript files. Any suggestion to solve this ? My .gitattributes…
srilakshmikanthanp
  • 2,231
  • 1
  • 8
  • 25
0
votes
1 answer

linguist-vendored and linguist-language not working in .gitattributes file

I am trying to use .gitattributes to specify the language of all .h files using linguist-language=C and make sure linguist doesn't include the SFML library in its tally using linguist-vendored. I counted up all the lines in my project (without the…
Serket
  • 3,785
  • 3
  • 14
  • 45
0
votes
0 answers

github-linguist does not recognize vendored files from .gitattributes

Github's linguist is detecting many files in my repos which are vendored, especially JavaScript. I found out that a .gitattributes can be used to configure linguist to ignore several files for statistics count. But this doesn't work, in any way I…
glasflügel
  • 325
  • 2
  • 11
0
votes
1 answer

GitHub deleted files are throwing off language stats

I deleted a bunch of .cc files on GitHub, but it stills sees them for the purpose of calculating language stats. So it labels the repo as C++ even though it's all Python. I read through guide here but didn't find anything about how it handles…
Elliott B
  • 980
  • 9
  • 32
0
votes
1 answer

.gitattributes not showing the proper language (linguist-detectable)

I have a project with several files. Mostly JavaScript, HTML, CSS but also Solidity. The project core is about Solidity, so I want Git showing as language Solidity. I created .gitattributes and add the following: *.sol…
Peter
  • 2,004
  • 2
  • 24
  • 57
0
votes
1 answer

How can I retrigger GitHub's syntax highlighter, Linguist?

How can I re-trigger GitHub's syntax highlighter using Javascript? When viewing a code file on GitHub, at some point GitHub's Linguist is somehow invoked. In my Chrome Inspector tab, it looks like the asset being loaded…
Andrew Cheong
  • 29,362
  • 15
  • 90
  • 145
0
votes
2 answers

Why changing GitHub repository language not working?

i have been made a repository in GitHub with as Xcode project with Objective-C language. Beside .gitignore file in root of my project made .gitattributes file and set this code in it: * linguist-vendored *.objective-c linguist-vendored=false But…
reza_khalafi
  • 6,230
  • 7
  • 56
  • 82
0
votes
3 answers

Github - Store Html/CSS file without change langage stats

I made a small scraper in Crystal hosted on Github. I want to store website HTML for testing purposes but when I do my Github project appear as written in Html (because of quantity of HTML compared to quantity of Crystal lines). How can I "ignore"…
alexandre-rousseau
  • 2,321
  • 26
  • 33