swiftlang/swift
swiftlang/swift has 2,309,162 source lines of code out of 3,350,840 total lines across 15,031 files, counted with tokei from the main ref at commit 73278b73870f on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
swiftlang/swift: 2,309,162 code lines at commit 73278b73870f, counted with tokei-15.0.0 on 2026-11-24. Saved result 44507247e159144cd56c5b23980f97f8d0c2c1ecc3c50b6af7f42cf4938b9eb9.
Source: swiftlang/swift on GitHub · counted commit 73278b73870f
OctoCounts produced this report by resolving swiftlang/swift to commit 73278b73870f, 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.
Repository size insights
This is a very large codebase by counted code lines. Code represents 68.9% of all lines, comments represent 20.9%, and the repository averages 154 code lines per file. C++ accounts for 39.2% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C++ | 1302 | 1246342 | 904355 | 177292 | 164695 |
| JSON | 21 | 521122 | 521121 | 0 | 1 |
| Swift | 10747 | 667621 | 421315 | 175934 | 70372 |
| C Header | 1512 | 526005 | 330886 | 118725 | 76394 |
| Module-Definition | 149 | 42641 | 38199 | 0 | 4442 |
| Python | 228 | 49239 | 37415 | 4739 | 7085 |
| CMake | 546 | 36803 | 27470 | 4629 | 4704 |
| PowerShell | 5 | 7138 | 6662 | 295 | 181 |
| YAML | 14 | 5032 | 5032 | 0 | 0 |
| Objective-C++ | 14 | 5259 | 3570 | 889 | 800 |
| BASH | 10 | 3934 | 2992 | 481 | 461 |
| INI | 1 | 3428 | 2254 | 445 | 729 |
| C | 24 | 2505 | 1752 | 425 | 328 |
| Bitbake | 5 | 1227 | 1092 | 55 | 80 |
| Objective-C | 18 | 1336 | 1073 | 109 | 154 |
| Emacs Lisp | 4 | 1405 | 1014 | 236 | 155 |
| Autoconf | 25 | 1160 | 875 | 123 | 162 |
| Vim Script | 8 | 689 | 602 | 45 | 42 |
| GNU Style Assembly | 2 | 519 | 321 | 114 | 84 |
| SIL | 53 | 463 | 272 | 145 | 46 |
| Shell | 7 | 359 | 254 | 59 | 46 |
| Batch | 4 | 198 | 130 | 31 | 37 |
| D | 3 | 133 | 102 | 12 | 19 |
| Assembly | 3 | 189 | 97 | 77 | 15 |
| Ruby | 1 | 96 | 86 | 3 | 7 |
| Makefile | 5 | 73 | 54 | 0 | 19 |
| LD Script | 4 | 53 | 49 | 0 | 4 |
| Zsh | 4 | 86 | 48 | 24 | 14 |
| ReStructuredText | 1 | 46 | 35 | 0 | 11 |
| Forge Config | 8 | 49 | 27 | 16 | 6 |
| SVG | 2 | 8 | 8 | 0 | 0 |
| Markdown | 255 | 19586 | 0 | 13883 | 5703 |
| Plain Text | 46 | 206096 | 0 | 200651 | 5445 |
Top language: C++ 39.2%. Generated on .
Counting rules and retention
swiftlang/swift: 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.
Reproduce this report
Report FAQ
How many lines of code does swiftlang/swift have?
swiftlang/swift has 2,309,162 lines of code, plus 699,437 comment lines and 342,241 blank lines, for 3,350,840 total lines at commit 73278b73870f on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
How was the swiftlang/swift line count measured?
OctoCounts resolved the public GitHub repository to commit 73278b73870f, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
What commit was counted for swiftlang/swift?
This OctoCounts report was generated from main at commit 73278b73870f on November 24, 2026.
Play the growth animation for swiftlang/swift on this page — 2,309,162 code lines across 33 languages, counted by tokei.