# godotengine/godot SLOC report

> godotengine/godot: 4,238,960 code lines at commit a661dfdbccc6, counted with tokei-15.0.0 on 2026-11-24. Saved result 29d5ee8a76162cc96195b28e1d44d84a998f7b91f54301e7eeaf323bc93e298e.

Source: [godotengine/godot on GitHub](https://github.com/godotengine/godot) · counted commit [a661dfdbccc6](https://github.com/godotengine/godot/tree/a661dfdbccc664ccca57ad76c2bb5dcd8f3fc768)

godotengine/godot has 4,238,960 source lines of code out of 5,956,906 total lines across 11,440 files, counted with tokei from the master ref at commit a661dfdbccc6 on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving godotengine/godot to commit a661dfdbccc6, 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

godotengine/godot: 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 very large codebase by counted code lines. Code represents 71.2% of all lines, comments represent 12.4%, and the repository averages 371 code lines per file. C++ accounts for 33.7% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 2,405 | 1,857,470 | 1,427,316 | 164,041 | 266,113 |
| C Header | 4,309 | 1,384,124 | 827,007 | 376,310 | 180,807 |
| PO File | 105 | 1,030,419 | 718,781 | 5,437 | 306,201 |
| C | 947 | 839,799 | 612,418 | 112,601 | 114,780 |
| C++ Header | 488 | 540,832 | 436,240 | 31,591 | 73,001 |
| C# | 314 | 58,100 | 39,416 | 11,481 | 7,203 |
| XML | 427 | 35,676 | 34,276 | 130 | 1,270 |
| GLSL | 147 | 40,876 | 29,764 | 3,207 | 7,905 |
| Java | 156 | 40,384 | 25,008 | 11,433 | 3,943 |
| Objective-C++ | 71 | 24,743 | 18,235 | 2,758 | 3,750 |
| Python | 344 | 19,539 | 14,497 | 1,366 | 3,676 |
| JSON | 7 | 11,538 | 11,538 | 0 | 0 |
| Bitbake | 102 | 12,344 | 10,952 | 372 | 1,020 |
| Kotlin | 56 | 12,355 | 7,992 | 2,821 | 1,542 |
| C++ Module | 2 | 10,999 | 7,827 | 1,600 | 1,572 |
| JavaScript | 31 | 9,875 | 6,742 | 2,262 | 871 |
| Happy | 1 | 4,583 | 4,368 | 0 | 215 |
| Objective-C | 1 | 1,999 | 1,707 | 72 | 220 |
| SVG | 1,191 | 1,191 | 1,191 | 0 | 0 |
| Scons | 1 | 1,281 | 959 | 170 | 152 |
| MSBuild | 26 | 952 | 760 | 86 | 106 |
| Shell | 10 | 713 | 487 | 102 | 124 |
| GNU Style Assembly | 1 | 602 | 390 | 122 | 90 |
| Swift | 3 | 420 | 257 | 103 | 60 |
| ReStructuredText | 1 | 218 | 171 | 0 | 47 |
| Visual Studio Solution | 3 | 165 | 162 | 0 | 3 |
| GDScript | 11 | 271 | 154 | 34 | 83 |
| AsciiDoc | 2 | 133 | 102 | 3 | 28 |
| TOML | 1 | 109 | 100 | 4 | 5 |
| Batch | 1 | 89 | 68 | 0 | 21 |
| CMake | 1 | 36 | 29 | 2 | 5 |
| Godot TextScene | 1 | 34 | 27 | 0 | 7 |
| Prolog | 1 | 18 | 16 | 0 | 2 |
| YAML | 1 | 12 | 3 | 9 | 0 |
| Markdown | 37 | 5,567 | 0 | 4,612 | 955 |
| Plain Text | 235 | 9,440 | 0 | 8,476 | 964 |

Top language: C++ 33.7%. Generated on November 24, 2026. Canonical report: https://octocounts.com/github/godotengine/godot/commit/a661dfdbccc664ccca57ad76c2bb5dcd8f3fc768?reportId=29d5ee8a76162cc96195b28e1d44d84a998f7b91f54301e7eeaf323bc93e298e&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

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

## Report FAQ

### How many lines of code does godotengine/godot have?

godotengine/godot has 4,238,960 lines of code, plus 741,205 comment lines and 976,741 blank lines, for 5,956,906 total lines at commit a661dfdbccc6 on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the godotengine/godot line count measured?

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

### What commit was counted for godotengine/godot?

This OctoCounts report was generated from master at commit a661dfdbccc6 on November 24, 2026.

## Similar repository reports

- [bluescarni/heyoka](https://octocounts.com/github/bluescarni/heyoka) — C++, 4,215,445 code lines
- [openjdk/jfx](https://octocounts.com/github/openjdk/jfx) — C++, 4,304,092 code lines
- [Kitware/VTK](https://octocounts.com/github/Kitware/VTK) — C++, 4,794,497 code lines
- [meta/hhvm](https://octocounts.com/github/meta/hhvm) — C++, 3,741,526 code lines
- [momusdigital/fnv_decomp](https://octocounts.com/github/momusdigital/fnv_decomp) — C++, 3,550,853 code lines
- [quackscarfmc-eng/ChimeraCraft](https://octocounts.com/github/quackscarfmc-eng/ChimeraCraft) — C++, 5,234,408 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)
- [Largest codebases by programming language](https://octocounts.com/languages)
- [Godot vs Bevy](https://octocounts.com/compare/godot-vs-bevy)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [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)
