# wesnoth/wesnoth SLOC report

> 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.

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.

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.

## Counting rules and retention

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.

## Repository size insights

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 | 1,954 | 12,698,603 | 6,207,287 | 4,728,058 | 1,763,258 |
| Forge Config | 1,719 | 503,572 | 408,549 | 43,298 | 51,725 |
| C++ | 565 | 242,418 | 177,545 | 27,572 | 37,301 |
| C++ Header | 692 | 103,519 | 49,057 | 36,444 | 18,018 |
| Lua | 300 | 50,131 | 37,132 | 7,566 | 5,433 |
| Python | 95 | 26,087 | 20,768 | 2,438 | 2,881 |
| JSON | 11 | 7,680 | 7,678 | 0 | 2 |
| Emacs Lisp | 3 | 7,960 | 7,556 | 259 | 145 |
| Java | 15 | 6,846 | 5,051 | 887 | 908 |
| Shell | 38 | 3,744 | 2,720 | 500 | 524 |
| CMake | 20 | 3,413 | 2,402 | 489 | 522 |
| Perl | 8 | 1,978 | 1,572 | 126 | 280 |

Top programming language: Forge Config 5.9%. Generated on November 18, 2026. Canonical report: https://octocounts.com/github/wesnoth/wesnoth

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/wesnoth/wesnoth/commit/670e500946c82679efada285300caba38857bfc5?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=dfc9073acbad9b975288f7c10a1deaa755e29382cf3f91941772b33e9a2d6677).

## Report FAQ

### How many lines of code does wesnoth/wesnoth have?

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.

### How was the wesnoth/wesnoth line count measured?

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.

### What commit was counted for wesnoth/wesnoth?

This OctoCounts report was generated from 670e500946c82679efada285300caba38857bfc5 at commit 670e500946c8 on November 18, 2026.

## Similar repository reports

- [odoo/odoo](https://octocounts.com/github/odoo/odoo) — PO File, 11,767,392 code lines
- [KDE/krita](https://octocounts.com/github/KDE/krita) — PO File, 3,095,307 code lines
- [DeclanRiedel/krita-mini](https://octocounts.com/github/DeclanRiedel/krita-mini) — PO File, 3,081,725 code lines
- [GNOME/gimp](https://octocounts.com/github/GNOME/gimp) — PO File, 2,768,676 code lines
- [videolan/vlc](https://octocounts.com/github/videolan/vlc) — PO File, 2,485,811 code lines
- [WeblateOrg/weblate](https://octocounts.com/github/WeblateOrg/weblate) — PO File, 2,461,766 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)
- [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)
