Skip to content

Lines of code sum does not match to sum of LOC in languages section #322

@dkorobtsov

Description

@dkorobtsov

For example, my profile at the moment shows 556565 total lines of code.
According to languages section:

  Commits Lines of code
Java 994 271804
Xml 971 35819
Gradle 280 1897
Html 74 4355
Kotlin 11 1175
CSS 7 318
JavaScript 7 122
Groovy 4 31
  Sum: 315521

Not sure where additional 241044 lines of code are coming from.
Feels like something is really wrong with total sum calculation.
100% sure it should not be that much. 315521 sounds much closer to be truth.

Some additional observations:

Probably removing some language from Languages section should affect total Lines of Code count?

Would not it be more logical to split pie chart based on LOC metrics, not on number of commits?
For example, in my case I have 995 commits and 271804 lines for Java and 971 and 35819 lines of code for XML. According to piechart split between my technology stack is ~50/50 java/xml. Which is pretty strange since lines of code count in java is almost 8 times higher than in xml.

Not sure about 971 commits in XML, pretty sure never done that much. Feels like there is an issue in calculation. Just in case - looked through all the commits, containing xml files - actual count is under 100. Feels like all changed files across all commits were added to xml commit metric as well. But still, even in that case, I've never changed that many xml files :-)

Same refers to 280 Gradle commits. Pretty sure actual count is under 50 for all projects combined.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions