# TrinityCore/TrinityCore SLOC report

> As of 2026-11-05 (commit 4ad7c7ba5bd2), TrinityCore/TrinityCore contains 22,226,284 total lines: 21,554,419 code, 328,853 comments, 343,012 blank, across 23,467 files in 21 languages (top language: SQL 94.5%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

TrinityCore/TrinityCore has 21,554,419 source lines of code out of 22,226,284 total lines across 23,467 files, counted with tokei from the 4ad7c7ba5bd2a3e73eb848babaf9b39696d63473 ref at commit 4ad7c7ba5bd2 on November 5, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving TrinityCore/TrinityCore to commit 4ad7c7ba5bd2, 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

TrinityCore/TrinityCore: 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 97.0% of all lines, comments represent 1.5%, and the repository averages 918 code lines per file. SQL accounts for 94.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| SQL | 20,272 | 20,679,504 | 20,364,741 | 175,302 | 139,461 |
| C++ | 1,657 | 978,459 | 774,721 | 70,827 | 132,911 |
| C Header | 1,280 | 489,724 | 359,261 | 68,743 | 61,720 |
| C | 97 | 55,834 | 41,777 | 8,032 | 6,025 |
| JSON | 5 | 5,451 | 5,451 | 0 | 0 |
| CMake | 69 | 5,822 | 4,211 | 911 | 700 |
| C++ Header | 34 | 3,702 | 1,747 | 1,173 | 782 |
| Protocol Buffers | 8 | 827 | 760 | 0 | 67 |
| Autoconf | 2 | 1,027 | 475 | 392 | 160 |
| Python | 3 | 664 | 465 | 70 | 129 |
| PHP | 3 | 368 | 337 | 17 | 14 |
| Shell | 6 | 275 | 231 | 13 | 31 |

Top language: SQL 94.5%. Generated on November 5, 2026. Canonical report: https://octocounts.com/github/TrinityCore/TrinityCore

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/TrinityCore/TrinityCore/commit/4ad7c7ba5bd2a3e73eb848babaf9b39696d63473?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=8c6f240fea199b4966ca76a399616f6dbc054fe7d8ccac537cd13d06db815fb0).

## Report FAQ

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

TrinityCore/TrinityCore has 21,554,419 lines of code, plus 328,853 comment lines and 343,012 blank lines, for 22,226,284 total lines at commit 4ad7c7ba5bd2 on November 5, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

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

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

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

This OctoCounts report was generated from 4ad7c7ba5bd2a3e73eb848babaf9b39696d63473 at commit 4ad7c7ba5bd2 on November 5, 2026.

## 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)
