swiftlang/swift SLOC report

As of 2026-08-26 (commit e29d9d5660ed), swiftlang/swift contains 3,254,025 total lines: 2,244,738 code, 677,704 comments, 331,583 blank, across 14,391 files in 33 languages (top: C++ 38.9%). Counted with tokei via OctoCounts.

As of 2026-08-26 (commit e29d9d5660ed), swiftlang/swift contains 3,254,025 total lines: 2,244,738 code, 677,704 comments, 331,583 blank, across 14,391 files in 33 languages (top: C++ 38.9%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving swiftlang/swift to commit e29d9d5660ed, downloading the repository source archive, and counting every source file 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, so counting the same revision again reproduces exactly these numbers.

Repository size insights

This is a very large codebase by counted code lines. Code represents 69.0% of all lines, comments represent 20.8%, and the repository averages 156 code lines per file. C++ accounts for 38.9% of counted code.

LanguageFilesLinesCodeCommentsBlanks
C++12861201110872095169186159829
JSON2152092552092401
Swift1019263003339704616650366484
C Header146951677332645411529775022
Python230488763707647527048
Module-Definition148412773697704300
CMake538355722653144544587
PowerShell364306048230152
YAML145032503200
Objective-C++1452523566886800
BASH1039453008476461
INI135132306461746

Top language (C++ 38.9%). Generated at 2026-08-26T18:42:56.889824099+00:00.

Report FAQ

How many lines of code does swiftlang/swift have?

swiftlang/swift has 3,254,025 total lines, including 2,244,738 code lines, 677,704 comment lines, and 331,583 blank lines.

How was the swiftlang/swift line count measured?

OctoCounts resolved the public GitHub repository to commit e29d9d5660ed, 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 e29d9d5660ed on 2026-08-26T18:42:56.889824099+00:00.

Similar repository reports

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