# etcd-io/raft SLOC report

> As of 2026-10-20 (commit 1931ff5beacc), etcd-io/raft contains 32,985 total lines: 16,475 code, 12,833 comments, 3,677 blank, across 150 files in 7 languages (top: Go 95.5%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

etcd-io/raft has 16,475 source lines of code out of 32,985 total lines across 150 files, counted from the main ref at commit 1931ff5beacc by the OctoCounts tokei engine on 2026-10-20. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving etcd-io/raft to commit 1931ff5beacc, 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 medium-sized codebase by counted code lines. Code represents 49.9% of all lines, comments represent 38.9%, and the repository averages 110 code lines per file. Go accounts for 95.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Go | 89 | 23,608 | 15,735 | 5,249 | 2,624 |
| Shell | 8 | 603 | 450 | 47 | 106 |
| Forge Config | 3 | 197 | 166 | 0 | 31 |
| Protocol Buffers | 1 | 205 | 103 | 87 | 15 |
| Makefile | 1 | 28 | 21 | 0 | 7 |
| Markdown | 7 | 345 | 0 | 232 | 113 |
| Plain Text | 41 | 7,999 | 0 | 7,218 | 781 |

Top language (Go 95.5%). Generated at 2026-10-20T02:01:24.118923532+00:00. Canonical report: https://octocounts.com/github/etcd-io/raft

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/etcd-io/raft/commit/1931ff5beacc1e2539003c0c70f096285f04c425?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D&reportId=8d9a0bc3b98fac517ab3d8c996638dcd28d06cdca917025ea30a3b4b73e06daa).

## Report FAQ

### How many lines of code does etcd-io/raft have?

etcd-io/raft has 32,985 total lines, including 16,475 code lines, 12,833 comment lines, and 3,677 blank lines.

### How was the etcd-io/raft line count measured?

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

### What commit was counted for etcd-io/raft?

This OctoCounts report was generated from main at commit 1931ff5beacc on 2026-10-20T02:01:24.118923532+00:00.

## Similar repository reports

- [uber-go/zap](https://octocounts.com/github/uber-go/zap) — Go, 16,537 code lines
- [XiaoChenChris/-Feed-AI-](https://octocounts.com/github/XiaoChenChris/-Feed-AI-) — Go, 16,318 code lines
- [Impa10r/peerswap-web](https://octocounts.com/github/Impa10r/peerswap-web) — Go, 16,185 code lines
- [geektutu/7days-golang](https://octocounts.com/github/geektutu/7days-golang) — Go, 15,970 code lines
- [tailscale/tailcat](https://octocounts.com/github/tailscale/tailcat) — Go, 17,458 code lines
- [89luca89/distrobox](https://octocounts.com/github/89luca89/distrobox) — Go, 15,499 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)
- [Rust vs Go](https://octocounts.com/compare/rust-vs-go)
- [Deno vs Node.js](https://octocounts.com/compare/deno-vs-node)
- [Kubernetes vs Terraform](https://octocounts.com/compare/kubernetes-vs-terraform)
- [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)
