# qgis/QGIS SLOC report

> qgis/QGIS: 9,411,073 code lines at commit 59e30b51260e, counted with tokei-15.0.0 on 2026-11-16. Saved result 20c5b54f72312073bbf0d3b618a92a6a764e824108a9851243896c50c855c4f9.

qgis/QGIS has 9,411,073 source lines of code out of 10,434,838 total lines across 19,436 files, counted with tokei from the master ref at commit 59e30b51260e on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving qgis/QGIS to commit 59e30b51260e, 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

qgis/QGIS: 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 90.2% of all lines, comments represent 4.8%, and the repository averages 484 code lines per file. TypeScript accounts for 75.0% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| TypeScript | 37 | 7,069,682 | 7,054,565 | 0 | 15,117 |
| C++ | 3,827 | 1,751,373 | 1,357,428 | 137,887 | 256,058 |
| C Header | 3,988 | 864,093 | 405,575 | 328,520 | 129,998 |
| Autoconf | 1,618 | 349,504 | 250,579 | 4,899 | 94,026 |
| Python | 1,865 | 101,254 | 86,821 | 5,451 | 8,982 |
| SVG | 6,786 | 78,159 | 78,100 | 11 | 48 |
| C++ Header | 178 | 57,583 | 39,844 | 10,200 | 7,539 |
| JSON | 30 | 36,447 | 36,436 | 0 | 11 |
| YAML | 5 | 31,397 | 31,397 | 0 | 0 |
| XML | 341 | 28,933 | 27,903 | 42 | 988 |
| CMake | 180 | 23,076 | 18,292 | 1,790 | 2,994 |
| C | 11 | 7,825 | 5,681 | 1,176 | 968 |
| QML | 11 | 3,738 | 3,433 | 67 | 238 |
| Snakemake | 1 | 2,669 | 2,661 | 8 | 0 |
| GLSL | 43 | 3,274 | 2,369 | 292 | 613 |
| Shell | 45 | 3,422 | 2,330 | 602 | 490 |
| Perl | 14 | 2,549 | 2,095 | 242 | 212 |
| LLVM | 7 | 1,426 | 1,314 | 0 | 112 |
| Gml | 1 | 1,121 | 1,121 | 0 | 0 |
| HTML | 20 | 976 | 887 | 21 | 68 |
| JavaScript | 9 | 605 | 462 | 102 | 41 |
| Nix | 4 | 679 | 430 | 187 | 62 |
| OpenCL | 8 | 469 | 411 | 0 | 58 |
| Vue | 12 | 436 | 270 | 134 | 32 |
| INI | 3 | 383 | 182 | 129 | 72 |
| Forge Config | 2 | 157 | 117 | 33 | 7 |
| Objective-C++ | 2 | 205 | 111 | 67 | 27 |
| CSS | 3 | 125 | 109 | 0 | 16 |
| Batch | 7 | 54 | 48 | 0 | 6 |
| Protocol Buffers | 1 | 82 | 38 | 25 | 19 |
| BASH | 2 | 48 | 22 | 17 | 9 |
| TOML | 1 | 27 | 21 | 0 | 6 |
| ReStructuredText | 1 | 19 | 15 | 0 | 4 |
| Prolog | 1 | 10 | 6 | 0 | 4 |
| Markdown | 34 | 8,480 | 0 | 6,765 | 1,715 |
| Plain Text | 338 | 4,558 | 0 | 4,388 | 170 |

Top language: TypeScript 75.0%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/qgis/QGIS/commit/59e30b51260ef53ea2109db4e5b3949bd1521660?reportId=20c5b54f72312073bbf0d3b618a92a6a764e824108a9851243896c50c855c4f9&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/qgis/QGIS/commit/59e30b51260ef53ea2109db4e5b3949bd1521660?reportId=20c5b54f72312073bbf0d3b618a92a6a764e824108a9851243896c50c855c4f9&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 qgis/QGIS have?

qgis/QGIS has 9,411,073 lines of code, plus 503,055 comment lines and 520,710 blank lines, for 10,434,838 total lines at commit 59e30b51260e on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the qgis/QGIS line count measured?

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

### What commit was counted for qgis/QGIS?

This OctoCounts report was generated from master at commit 59e30b51260e on November 16, 2026.

## Similar repository reports

- [openclaw/openclaw](https://octocounts.com/github/openclaw/openclaw) — TypeScript, 12,082,994 code lines
- [FreeCAD/FreeCAD](https://octocounts.com/github/FreeCAD/FreeCAD) — TypeScript, 7,134,016 code lines
- [BuilderIO/agent-native](https://octocounts.com/github/BuilderIO/agent-native) — TypeScript, 6,625,384 code lines
- [elastic/kibana](https://octocounts.com/github/elastic/kibana) — TypeScript, 13,546,903 code lines
- [elizaOS/eliza](https://octocounts.com/github/elizaOS/eliza) — TypeScript, 6,153,061 code lines
- [QwenLM/qwen-code](https://octocounts.com/github/QwenLM/qwen-code) — TypeScript, 4,909,536 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)
- [Next.js vs Vite](https://octocounts.com/compare/nextjs-vs-vite)
- [Angular vs Vue](https://octocounts.com/compare/angular-vs-vue)
- [Svelte vs Vue](https://octocounts.com/compare/svelte-vs-vue)
- [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)
