# fluxcd/flux2 SLOC report

> fluxcd/flux2: 41,386 code lines at commit 1816c594f1c4, counted with tokei-15.0.0 on 2026-11-20. Saved result 4f6291a6cadba46a25f76d4c7891756ed4dd272e0c918395183c58c24390bf7f.

Source: [fluxcd/flux2 on GitHub](https://github.com/fluxcd/flux2) · counted commit [1816c594f1c4](https://github.com/fluxcd/flux2/tree/1816c594f1c4e37df419638f4b69a8ab39e0ed6b)

fluxcd/flux2 has 41,386 source lines of code out of 59,196 total lines across 595 files, counted with tokei from the main ref at commit 1816c594f1c4 on November 20, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving fluxcd/flux2 to commit 1816c594f1c4, 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

fluxcd/flux2: 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 medium-sized codebase by counted code lines. Code represents 69.9% of all lines, comments represent 17.9%, and the repository averages 70 code lines per file. Go accounts for 83.1% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Go | 348 | 46,891 | 34,377 | 6,718 | 5,796 |
| YAML | 209 | 6,638 | 6,523 | 22 | 93 |
| Shell | 2 | 307 | 229 | 40 | 38 |
| JSON | 5 | 147 | 147 | 0 | 0 |
| Makefile | 1 | 124 | 94 | 6 | 24 |
| Dockerfile | 1 | 21 | 13 | 0 | 8 |
| TOML | 1 | 3 | 3 | 0 | 0 |
| Markdown | 23 | 5,050 | 0 | 3,775 | 1,275 |
| Plain Text | 5 | 15 | 0 | 15 | 0 |

Top language: Go 83.1%. Generated on November 20, 2026. Canonical report: https://octocounts.com/github/fluxcd/flux2/commit/1816c594f1c4e37df419638f4b69a8ab39e0ed6b?reportId=4f6291a6cadba46a25f76d4c7891756ed4dd272e0c918395183c58c24390bf7f&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/fluxcd/flux2/commit/1816c594f1c4e37df419638f4b69a8ab39e0ed6b?reportId=4f6291a6cadba46a25f76d4c7891756ed4dd272e0c918395183c58c24390bf7f&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does fluxcd/flux2 have?

fluxcd/flux2 has 41,386 lines of code, plus 10,576 comment lines and 7,234 blank lines, for 59,196 total lines at commit 1816c594f1c4 on November 20, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the fluxcd/flux2 line count measured?

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

### What commit was counted for fluxcd/flux2?

This OctoCounts report was generated from main at commit 1816c594f1c4 on November 20, 2026.

## Similar repository reports

- [hetznercloud/cli](https://octocounts.com/github/hetznercloud/cli) — Go, 40,482 code lines
- [google/ax](https://octocounts.com/github/google/ax) — Go, 40,136 code lines
- [staticbackendhq/core](https://octocounts.com/github/staticbackendhq/core) — Go, 40,093 code lines
- [jorgerojas26/lazysql](https://octocounts.com/github/jorgerojas26/lazysql) — Go, 42,758 code lines
- [gosom/google-maps-scraper](https://octocounts.com/github/gosom/google-maps-scraper) — Go, 42,787 code lines
- [toise-dev/toise](https://octocounts.com/github/toise-dev/toise) — Go, 42,867 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)
- [Largest codebases by programming language](https://octocounts.com/languages)
- [Argo CD vs Flux](https://octocounts.com/compare/argo-cd-vs-flux)
- [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)
