sourcerer-io / sourcerer-app

🦄 Sourcerer app makes a visual profile from your GitHub and git repositories.
https://sourcerer.io/start
MIT License
6.74k stars 280 forks source link

Better language detection for non-GitHub repos #408

Open 4oo4 opened 5 years ago

4oo4 commented 5 years ago

This feature works really well for GitHub, but it appears that non-Github repos have issues having the language detected correctly, and don't show anything other than the top result, whereas GitHub repos will have a breakdown of multiple languages that are used.

For example, this repo is primarily Markdown/SCSS/YAML, but shows up as only HTML (possibly related to #235?)

https://gitlab.com/4oo4/pushfish-landing

Besides the issue of not showing the language correctly, it isn't a good representation of skills if it's only able to detect one language per repository.

yaronskaya commented 5 years ago

Hi @4oo4. We currently do not show statistics from commits having more then 20k lines of code. So most of your contributions are not counted in your profile. Is it a common way to make such a huge commits? If so, we will change showed statistics of languages and technologies.

4oo4 commented 5 years ago

Ahh, didn't think about that. In this case the commits are huge since I was changing a website from using Semantic UI to Jekyll, and the group I'm working on that for prefers having squash and merge when accepting pull requests versus merging individual commits.

I can't speak for other people but I know that a number of groups prefer the squash/merge approach for PRs too, so maybe it would be worth having a separate command line option for large commits?

It's understandable that wouldn't be the default because of performance, but would be nice to have for groups that work that way.

Cheers