anuraghazra / anuraghazra/github-readme-stats

Language detection show languages that I've never used

Aperta
#450 15 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement lang-card
Lingua principale
JavaScript
Stelle
79.8k
Fork
37.7k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**Describe the bug**

I think that the app detect repos that not necessary is representational, that's why it show Lua and C for my username.

**Expected behavior**
I expect to have different language stat, I've done almost none Lua and C.

**Screenshots / Live demo link (paste the github-readme-stats link as markdown image)**
![](https://github-readme-stats.vercel.app/api/top-langs/?username=jcubic&layout=compact)

I've never written any line of Lua code in my life, maybe I have fork with langauge in it.

I expect to have JavaScript, CSS, Scheme, PHP languages maybe TypeScript.

**Additional context**

Maybe the app should sort repos by stars so it show most faved repos which in turn will give most worked on repos.

Here is GraphQL query that show more relevant repositories (at least for me, tested in [GraphQL explorer](https://developer.github.com/v4/explorer/)):
```
query {
user(login: "jcubic") {
# fetch only owner repos & not forks
repositories(ownerAffiliations: OWNER, isFork: false, first: 100, orderBy:{field: STARGAZERS, direction: DESC}) {
nodes {
languages(first: 10, orderBy: {field: SIZE, direction: DESC}) {
edges {
size
node {
color
name
}
}
}
}
}
}
}
```

Right now it show my first repo. Maybe they show up at random, that would be worst case.

Just FYI `lua` came from ToME game, repo that I've just copied from internet so it don't get lost, it was hard to find, I've not written even one line of it. Maybe you should also count number of commits in repo. ToME have exactly 3 commits.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.