cockroachdb/cockroach
cockroachdb/cockroach has 3,085,053 source lines of code out of 4,182,809 total lines across 12,785 files, counted with tokei from the master ref at commit d30c905fff79 on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
cockroachdb/cockroach: 3,085,053 code lines at commit d30c905fff79, counted with tokei-15.0.0 on 2026-11-24. Saved result b06224583fdb416cb152eac1cd4cdb090436074c809c629ea2c16c9af978f0e3.
Source: cockroachdb/cockroach on GitHub · counted commit d30c905fff79
OctoCounts produced this report by resolving cockroachdb/cockroach to commit d30c905fff79, 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.
Repository size insights
This is a very large codebase by counted code lines. Code represents 73.8% of all lines, comments represent 16.7%, and the repository averages 241 code lines per file. Go accounts for 84.1% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Go | 8907 | 3471666 | 2593330 | 544487 | 333849 |
| JSON | 201 | 123345 | 123334 | 0 | 11 |
| YAML | 108 | 108855 | 102615 | 3114 | 3126 |
| Bazel | 1351 | 81836 | 78238 | 642 | 2956 |
| TSX | 518 | 73278 | 62751 | 4230 | 6297 |
| TypeScript | 436 | 39302 | 30737 | 4507 | 4058 |
| Happy | 4 | 23888 | 22471 | 0 | 1417 |
| Protocol Buffers | 175 | 38634 | 15558 | 18238 | 4838 |
| Sass | 194 | 14540 | 11456 | 1052 | 2032 |
| SQL | 90 | 9744 | 9039 | 558 | 147 |
| XML | 16 | 7810 | 7801 | 0 | 9 |
| Shell | 115 | 10340 | 7049 | 1742 | 1549 |
| TCL | 75 | 7969 | 5764 | 783 | 1422 |
| Python | 16 | 2927 | 2036 | 456 | 435 |
| BASH | 22 | 2395 | 1905 | 221 | 269 |
| C | 3 | 2586 | 1898 | 482 | 206 |
| SVG | 87 | 1681 | 1675 | 4 | 2 |
| HCL | 6 | 1871 | 1537 | 51 | 283 |
| C++ | 3 | 1672 | 1422 | 55 | 195 |
| JavaScript | 22 | 1462 | 962 | 335 | 165 |
| TOML | 3 | 600 | 580 | 9 | 11 |
| PlantUML | 1 | 780 | 578 | 0 | 202 |
| Java | 4 | 493 | 411 | 30 | 52 |
| C# | 1 | 434 | 393 | 10 | 31 |
| C Header | 4 | 1186 | 292 | 814 | 80 |
| Vim Script | 4 | 292 | 263 | 8 | 21 |
| Templ | 4 | 234 | 212 | 8 | 14 |
| Dockerfile | 8 | 318 | 205 | 73 | 40 |
| FlatBuffers Schema | 4 | 594 | 184 | 310 | 100 |
| AWK | 4 | 248 | 143 | 76 | 29 |
| Makefile | 6 | 171 | 89 | 57 | 25 |
| HTML | 1 | 59 | 59 | 0 | 0 |
| PHP | 1 | 35 | 30 | 1 | 4 |
| Go HTML | 1 | 15 | 15 | 0 | 0 |
| MSBuild | 1 | 9 | 9 | 0 | 0 |
| Ruby | 1 | 8 | 6 | 0 | 2 |
| GNU Style Assembly | 1 | 10 | 4 | 4 | 2 |
| FORTRAN Legacy | 1 | 2 | 2 | 0 | 0 |
| Markdown | 90 | 14671 | 0 | 10642 | 4029 |
| Plain Text | 296 | 136849 | 0 | 105671 | 31178 |
Top language: Go 84.1%. Generated on .
Counting rules and retention
cockroachdb/cockroach: 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.
Reproduce this report
Report FAQ
How many lines of code does cockroachdb/cockroach have?
cockroachdb/cockroach has 3,085,053 lines of code, plus 698,670 comment lines and 399,086 blank lines, for 4,182,809 total lines at commit d30c905fff79 on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
How was the cockroachdb/cockroach line count measured?
OctoCounts resolved the public GitHub repository to commit d30c905fff79, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
What commit was counted for cockroachdb/cockroach?
This OctoCounts report was generated from master at commit d30c905fff79 on November 24, 2026.
Play the growth animation for cockroachdb/cockroach on this page — 3,085,053 code lines across 40 languages, counted by tokei.