swiftlang/swift

swiftlang/swift has 2,299,938 source lines of code out of 3,336,604 total lines across 14,877 files, counted with tokei from the main ref at commit d349aa60316b on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

swiftlang/swift: 2,299,938 code lines at commit d349aa60316b, counted with tokei-15.0.0 on 2026-11-16. Saved result 0abf5ef9f6537cdf850364f6ba7c591058c0104202334fde6060429b19f336f7.

OctoCounts produced this report by resolving swiftlang/swift to commit d349aa60316b, 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.8%, and the repository averages 155 code lines per file. C++ accounts for 39.2% of counted code.

LanguageFilesLinesCodeCommentsBlanks
C++13011241484900751176443164290
JSON2152105852105701
Swift1061966094641698917399069967
C Header150152432833000611816176161
Module-Definition148424293801104418
Python228492303740647397085
CMake545367202741146144695
PowerShell570466583288175
YAML145032503200
Objective-C++1452593570889800
BASH1039342992481461
INI134282254445729
C2425051752425328
Bitbake5122710925580
Objective-C1813361073109154
Emacs Lisp414041013236155
Autoconf241139861117161
Vim Script86896024542
GNU Style Assembly251932111484
SIL5346327214546
Shell73592545946
Batch41981303137
D31331021219
Assembly3189977715
Ruby1968637
Makefile57354019
LD Script4534904
Zsh486482414
ReStructuredText14635011
Forge Config84927166
SVG28800
Markdown244190420134935549
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,299,938 lines of code, plus 695,662 comment lines and 341,004 blank lines, for 3,336,604 total lines at commit d349aa60316b on November 16, 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 d349aa60316b, 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 d349aa60316b on November 16, 2026.

Similar repository reports

Other public repositories with an OctoCounts report, ranked by top language and code size similarity:

Play the growth animation for swiftlang/swift on this page — 2,299,938 code lines across 33 languages, counted by tokei.