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
0
votes
1 answer

Custom syntax highlighting on TFS

Scenario In GitHub, we can use .gitattributes to set linguist directive in order to have a custom detection for files with different extensions. We can also set the syntax directly in our files (vim: syntax=clipper). I'm migrating some projects…
Marcelo Camargo
  • 2,240
  • 2
  • 22
  • 51
0
votes
1 answer

Trying to correct Github's Linguist

Like many programmers, I use Github for version control. However, my websites which I made with ASP.NET list as PowerShell repos when there's little to no PowerShell involved. I'm trying to fix this by adding *.rb linguist-language=CSharp to the…
Nick Gilbert
  • 4,159
  • 8
  • 43
  • 90
0
votes
2 answers

GitHub fails to determine the repository language

I use GitHub for a C++ / Qt project. GitHub automatically determines the languages of the project from the file extentions. Problem: Qt has a file name ProjectName.pro, which is interpreted to be Prolog by GitHub. How can I indicate it is NOT…
user2429940
-1
votes
1 answer

Github-Linguist, Ruby version run over multiple repositories?

I am trying to run the github linguist ruby verision, It runs on my computer, I am using visual studio. If i run the github-linguist it does give me the stats of percentage and type of language my repository have that is on local system. ( using…
-1
votes
1 answer

How to convert a Ruby object to JSON from a File?

I'm trying to use the Linguist gem: https://github.com/github/linguist My code is: require 'linguist' filePath = ARGV langDetails = Linguist::FileBlob.new(filePath) puts langDetails That outputs: # However,…
Shamoon
  • 41,293
  • 91
  • 306
  • 570
1 2 3 4
5