wesnoth/wesnoth has 6,933,689 source lines of code out of 13,687,857 total lines across 5,593 files, counted with tokei from the 670e500946c82679efada285300caba38857bfc5 ref at commit 670e500946c8 on November 18, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-18 (commit 670e500946c8), wesnoth/wesnoth contains 13,687,857 total lines: 6,933,689 code, 4,869,817 comments, 1,884,351 blank, across 5,593 files in 34 languages (top programming language: Forge Config 5.9%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving wesnoth/wesnoth to commit 670e500946c8, 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.
This is a very large codebase by counted code lines. Code represents 50.7% of all lines, comments represent 35.6%, and the repository averages 1,240 code lines per file. Forge Config is the largest programming language at 5.9% of counted code; data and prose formats such as JSON or YAML hold a larger share.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| PO File | 1954 | 12698603 | 6207287 | 4728058 | 1763258 |
| Forge Config | 1719 | 503572 | 408549 | 43298 | 51725 |
| C++ | 565 | 242418 | 177545 | 27572 | 37301 |
| C++ Header | 692 | 103519 | 49057 | 36444 | 18018 |
| Lua | 300 | 50131 | 37132 | 7566 | 5433 |
| Python | 95 | 26087 | 20768 | 2438 | 2881 |
| JSON | 11 | 7680 | 7678 | 0 | 2 |
| Emacs Lisp | 3 | 7960 | 7556 | 259 | 145 |
| Java | 15 | 6846 | 5051 | 887 | 908 |
| Shell | 38 | 3744 | 2720 | 500 | 524 |
| CMake | 20 | 3413 | 2402 | 489 | 522 |
| Perl | 8 | 1978 | 1572 | 126 | 280 |
Top programming language: Forge Config 5.9%. Generated on .
wesnoth/wesnoth: 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.
wesnoth/wesnoth has 6,933,689 lines of code, plus 4,869,817 comment lines and 1,884,351 blank lines, for 13,687,857 total lines at commit 670e500946c8 on November 18, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit 670e500946c8, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from 670e500946c82679efada285300caba38857bfc5 at commit 670e500946c8 on November 18, 2026.
Play the growth animation for wesnoth/wesnoth on this page — 6,933,689 code lines across 34 languages, counted by tokei.