Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

Don't trust GitHub to identify repo's primary language #4

Open
y opened this issue Nov 7, 2012 · 0 comments
Open

Don't trust GitHub to identify repo's primary language #4

y opened this issue Nov 7, 2012 · 0 comments

Comments

@y
Copy link

y commented Nov 7, 2012

The formula should not only looks at the language that GitHub thinks is the primary language, but should look at all languages identified in the repo. The Pithub API shows that there is a way to examine all languages for a repo.

A few examples where this matters: GitHub frequently misidentifies XS modules as C; and if there's JavaScript included in a repo, GitHub can identify the primary language as JavaScript if it has more lines of code. To avoid this issue, all the languages for a repo should be examined to see if Perl occurs in the list and not just as the primary language.

(This was initially posted as a comment to #2, but apparently went unnoticed.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant