-
Notifications
You must be signed in to change notification settings - Fork 71
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
Fix repository's incorrect language-classification on GitHub.com #223
Conversation
Technically they are Cabal configuration, so it's more like EDN or JSON than Clojure or JavaScript. I guess linguist doesn't know about Cabal files?
…Sent from my iPhone
On 13 Feb 2019, at 15.02, John Gardner ***@***.***> wrote:
Currently, GitHub classifies haskell-ci as a Roff repository:
This stems from the abundance of collections/cabal.project.* files with numeric suffixes, which GitHub mistakes as man pages. This PR is a small patch to correct that using an override.
NOTE: I'm assuming the files contained in collections/ are Haskell source. If they're not, please let me know and I'll mark them as ordinary Text, instead of being any particular language.
You can view, comment on, or merge this pull request online at:
#223
Commit Summary
Fix incorrect language classification on GitHub
File Changes
A .gitattributes (2)
Patch Links:
https://github.com/haskell-CI/haskell-ci/pull/223.patch
https://github.com/haskell-CI/haskell-ci/pull/223.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Erm, it actually doesn't. That actually needs to be fixed upstream; I'll look into submitting a PR to have Cabal added as a language. Since I'm (clearly) Haskell illiterate, would you be able to tell me what filenames and file extensions should be associated with Cabal? Regarding this PR: I'll mark the files as |
@phadej Alright, PR for Cabal support has been submitted upstream. 👍 Once it's merged and released in a new release of Linguist, the |
@Alhadis extensions are a bit tricky
|
Yet, handling only |
I guess this is fine for now, we can discuss Cabal + linguist in your PR. |
Thanks! 👍 As mentioned at cabal.haskell-ci linguist-language=Cabal This will activate correct syntax highlighting for the file once the PR is live on GitHub. |
Fwiw, |
I ran a search for that, but it only yielded 16 results. We require languages/filetypes to have considerable distribution in-the-wild before supporting them officially (at least 100 unique repos/users). |
Currently, GitHub classifies
haskell-ci
as a Roff repository:This stems from the abundance of
collections/cabal.project.*
files with numeric suffixes, which GitHub mistakes as man pages. This PR is a small patch to correct that using an override.NOTE: I'm assuming the files contained in
collections/
are Haskell source. If they're not, please let me know and I'll mark them as ordinaryText
, instead of being any particular language.