# id-Software/Quake-2 SLOC report

> As of 2026-11-07 (commit 372afde46e7d), id-Software/Quake-2 contains 199,849 total lines: 142,104 code, 28,718 comments, 29,027 blank, across 317 files in 11 languages (top language: C 77.0%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

id-Software/Quake-2 has 142,104 source lines of code out of 199,849 total lines across 317 files, counted with tokei from the master ref at commit 372afde46e7d on November 7, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving id-Software/Quake-2 to commit 372afde46e7d, 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

id-Software/Quake-2: 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 large codebase by counted code lines. Code represents 71.1% of all lines, comments represent 14.4%, and the repository averages 448 code lines per file. C accounts for 77.0% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 187 | 152,594 | 109,350 | 21,257 | 21,987 |
| C Header | 77 | 21,476 | 16,143 | 3,067 | 2,266 |
| GNU Style Assembly | 13 | 6,987 | 4,482 | 1,290 | 1,215 |
| Objective-C | 6 | 5,925 | 4,290 | 649 | 986 |
| Assembly | 9 | 5,749 | 3,849 | 880 | 1,020 |
| Makefile | 3 | 5,160 | 3,123 | 658 | 1,379 |
| Bitbake | 4 | 748 | 708 | 0 | 40 |
| Forge Config | 1 | 150 | 150 | 0 | 0 |
| Module-Definition | 4 | 8 | 8 | 0 | 0 |
| Batch | 1 | 1 | 1 | 0 | 0 |
| Plain Text | 12 | 1,051 | 0 | 917 | 134 |

Top language: C 77.0%. Generated on November 7, 2026. Canonical report: https://octocounts.com/github/id-Software/Quake-2

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/id-Software/Quake-2/commit/372afde46e7defc9dd2d719a1732b8ace1fa096e?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=a4bcea582b0842cac77dc31e69d04bf3f6c2cc3ad5c484cc9772e9182955496b).

## Report FAQ

### How many lines of code does id-Software/Quake-2 have?

id-Software/Quake-2 has 142,104 lines of code, plus 28,718 comment lines and 29,027 blank lines, for 199,849 total lines at commit 372afde46e7d on November 7, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the id-Software/Quake-2 line count measured?

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

### What commit was counted for id-Software/Quake-2?

This OctoCounts report was generated from master at commit 372afde46e7d on November 7, 2026.

## Similar repository reports

- [raposomiguel50/system-shock-android](https://octocounts.com/github/raposomiguel50/system-shock-android) — C, 141,951 code lines
- [ming1016/study](https://octocounts.com/github/ming1016/study) — C, 143,558 code lines
- [ttscoff/nv](https://octocounts.com/github/ttscoff/nv) — C, 144,440 code lines
- [vishapoberon/compiler](https://octocounts.com/github/vishapoberon/compiler) — C, 138,577 code lines
- [kingToolbox/WindTerm](https://octocounts.com/github/kingToolbox/WindTerm) — C, 138,241 code lines
- [svaarala/duktape](https://octocounts.com/github/svaarala/duktape) — C, 137,375 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)
- [Neovim vs VS Code](https://octocounts.com/compare/neovim-vs-vscode)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [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)
