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.

LanguageFilesLinesCodeCommentsBlanks
C++13021246342904355177292164695
JSON2152112252112101
Swift1074766762142131517593470372
C Header151252600533088611872576394
Module-Definition149426413819904442
Python228492393741547397085
CMake546368032747046294704
PowerShell571386662295181
YAML145032503200
Objective-C++1452593570889800
BASH1039342992481461
INI134282254445729
C2425051752425328
Bitbake5122710925580
Objective-C1813361073109154
Emacs Lisp414051014236155
Autoconf251160875123162
Vim Script86896024542
GNU Style Assembly251932111484
SIL5346327214546
Shell73592545946
Batch41981303137
D31331021219
Assembly3189977715
Ruby1968637
Makefile57354019
LD Script4534904
Zsh486482414
ReStructuredText14635011
Forge Config84927166
SVG28800
Markdown255195860138835703
Plain Text4620609602006515445

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

Reproduce this exact report and configuration.

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.