# metallb/metallb SLOC report

> As of 2026-11-09 (commit 6be06621dd32), metallb/metallb contains 181,600 total lines: 148,753 code, 18,607 comments, 14,240 blank, across 937 files in 20 languages (top language: Go 37.4%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

metallb/metallb has 148,753 source lines of code out of 181,600 total lines across 937 files, counted with tokei from the 6be06621dd32170bb36cc0a6499d59bc0489fa6c ref at commit 6be06621dd32 on November 9, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving metallb/metallb to commit 6be06621dd32, 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.

## Counting rules and retention

metallb/metallb: 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.

## Repository size insights

This is a large codebase by counted code lines. Code represents 81.9% of all lines, comments represent 10.2%, and the repository averages 159 code lines per file. Go accounts for 37.4% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Go | 219 | 64,517 | 55,682 | 3,009 | 5,826 |
| YAML | 153 | 51,068 | 50,581 | 383 | 104 |
| JavaScript | 128 | 15,629 | 13,511 | 1,312 | 806 |
| SVG | 12 | 9,733 | 9,732 | 1 | 0 |
| CSS | 32 | 7,939 | 7,016 | 189 | 734 |
| JSON | 9 | 4,561 | 4,561 | 0 | 0 |
| HTML | 128 | 3,097 | 3,012 | 14 | 71 |
| TOML | 33 | 3,938 | 2,247 | 604 | 1,087 |
| Python | 1 | 1,754 | 1,483 | 66 | 205 |
| Templ | 6 | 227 | 208 | 0 | 19 |
| Shell | 5 | 208 | 145 | 14 | 49 |
| Pan | 5 | 174 | 139 | 5 | 30 |

Top language: Go 37.4%. Generated on November 9, 2026. Canonical report: https://octocounts.com/github/metallb/metallb

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/metallb/metallb/commit/6be06621dd32170bb36cc0a6499d59bc0489fa6c?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=1dd26a4f8c615ff50cedf00175a83d8c36c99850f528d8b7ce8d484c8be93ae2).

## Report FAQ

### How many lines of code does metallb/metallb have?

metallb/metallb has 148,753 lines of code, plus 18,607 comment lines and 14,240 blank lines, for 181,600 total lines at commit 6be06621dd32 on November 9, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the metallb/metallb line count measured?

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

### What commit was counted for metallb/metallb?

This OctoCounts report was generated from 6be06621dd32170bb36cc0a6499d59bc0489fa6c at commit 6be06621dd32 on November 9, 2026.

## Similar repository reports

- [projectdiscovery/nuclei](https://octocounts.com/github/projectdiscovery/nuclei) — Go, 149,235 code lines
- [kutukam/autonomous-pentest-agent](https://octocounts.com/github/kutukam/autonomous-pentest-agent) — Go, 146,513 code lines
- [trhhubsd/ARTEX](https://octocounts.com/github/trhhubsd/ARTEX) — Go, 146,513 code lines
- [Mag1cFall/AIStudio2API](https://octocounts.com/github/Mag1cFall/AIStudio2API) — Go, 145,876 code lines
- [dadrus/heimdall](https://octocounts.com/github/dadrus/heimdall) — Go, 143,264 code lines
- [lin-snow/Ech0](https://octocounts.com/github/lin-snow/Ech0) — Go, 143,246 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)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [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)
- [All OctoCounts guides](https://octocounts.com/docs)
