# SonarSource/sonarqube SLOC report

> As of 2026-11-13 (commit e65c875393a2), SonarSource/sonarqube contains 704,178 total lines: 474,918 code, 138,822 comments, 90,438 blank, across 6,226 files in 15 languages (top language: Java 90.5%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

SonarSource/sonarqube has 474,918 source lines of code out of 704,178 total lines across 6,226 files, counted with tokei from the master ref at commit e65c875393a2 on November 13, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving SonarSource/sonarqube to commit e65c875393a2, downloading the repository source archive, and counting files selected by the effective rules with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

SonarSource/sonarqube: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## Repository size insights

This is a large codebase by counted code lines. Code represents 67.4% of all lines, comments represent 19.7%, and the repository averages 76 code lines per file. Java accounts for 90.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Java | 5,635 | 653,797 | 430,023 | 136,664 | 87,110 |
| JSON | 311 | 24,872 | 24,361 | 0 | 511 |
| XML | 124 | 17,092 | 15,206 | 261 | 1,625 |
| Protocol Buffers | 47 | 4,412 | 2,936 | 842 | 634 |
| Shell | 19 | 1,384 | 940 | 239 | 205 |
| Groovy | 7 | 509 | 393 | 58 | 58 |
| Apache Velocity | 5 | 344 | 316 | 0 | 28 |
| SVG | 7 | 216 | 212 | 4 | 0 |
| Batch | 4 | 235 | 193 | 0 | 42 |
| HTML | 5 | 173 | 162 | 0 | 11 |
| SQL | 9 | 83 | 80 | 0 | 3 |
| Ruby | 12 | 352 | 62 | 264 | 26 |

Top language: Java 90.5%. Generated on November 13, 2026. Canonical report: https://octocounts.com/github/SonarSource/sonarqube

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/SonarSource/sonarqube/commit/e65c875393a2a67b8d2e815592dacae0dd5bbb13?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D&reportId=d7d33253fab7ceb11f9d8022509e887d586fb0dcc7a28db198098a18bc036fe3).

## Report FAQ

### How many lines of code does SonarSource/sonarqube have?

SonarSource/sonarqube has 474,918 lines of code, plus 138,822 comment lines and 90,438 blank lines, for 704,178 total lines at commit e65c875393a2 on November 13, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the SonarSource/sonarqube line count measured?

OctoCounts resolved the public GitHub repository to commit e65c875393a2, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for SonarSource/sonarqube?

This OctoCounts report was generated from master at commit e65c875393a2 on November 13, 2026.

## Similar repository reports

- [apache/phoenix](https://octocounts.com/github/apache/phoenix) — Java, 474,090 code lines
- [apache/james-project](https://octocounts.com/github/apache/james-project) — Java, 473,441 code lines
- [apache/jena](https://octocounts.com/github/apache/jena) — Java, 468,105 code lines
- [apache/seatunnel](https://octocounts.com/github/apache/seatunnel) — Java, 465,637 code lines
- [h2oai/h2o-3](https://octocounts.com/github/h2oai/h2o-3) — Java, 465,214 code lines
- [spring-projects/spring-framework](https://octocounts.com/github/spring-projects/spring-framework) — Java, 461,952 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [Kubernetes vs Docker Compose](https://octocounts.com/compare/kubernetes-vs-docker-compose)
- [Kubernetes vs Terraform](https://octocounts.com/compare/kubernetes-vs-terraform)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
- [All OctoCounts guides](https://octocounts.com/docs)
