# hashicorp/terraform SLOC report

> As of 2026-08-31 (commit d052145462e9), hashicorp/terraform contains 744,244 total lines: 590,710 code, 72,985 comments, 80,549 blank, across 3,976 files in 12 languages (top: Go 92.8%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving hashicorp/terraform to commit d052145462e9, 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 large codebase by counted code lines. Code represents 79.4% of all lines, comments represent 9.8%, and the repository averages 149 code lines per file. Go accounts for 92.8% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Go | 1,996 | 694,844 | 548,219 | 69,486 | 77,139 |
| JSON | 261 | 27,021 | 27,020 | 0 | 1 |
| HCL | 1,647 | 16,577 | 13,373 | 807 | 2,397 |
| Protocol Buffers | 13 | 3,272 | 1,601 | 1,243 | 428 |
| Shell | 15 | 742 | 411 | 173 | 158 |
| Dockerfile | 2 | 85 | 32 | 35 | 18 |
| Makefile | 1 | 50 | 25 | 13 | 12 |
| YAML | 1 | 17 | 13 | 4 | 0 |
| Templ | 8 | 10 | 10 | 0 | 0 |
| BASH | 1 | 26 | 6 | 16 | 4 |
| Markdown | 22 | 1,581 | 0 | 1,191 | 390 |
| Plain Text | 9 | 19 | 0 | 17 | 2 |

Top language (Go 92.8%). Generated at 2026-08-31T09:53:20.234761574+00:00. Canonical report: https://octocounts.com/github/hashicorp/terraform

## Report FAQ

### How many lines of code does hashicorp/terraform have?

hashicorp/terraform has 744,244 total lines, including 590,710 code lines, 72,985 comment lines, and 80,549 blank lines.

### How was the hashicorp/terraform line count measured?

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

### What commit was counted for hashicorp/terraform?

This OctoCounts report was generated from main at commit d052145462e9 on 2026-08-31T09:53:20.234761574+00:00.

## Similar repository reports

- [AgentsMesh/AgentsMesh](https://octocounts.com/github/AgentsMesh/AgentsMesh) — Go, 592,385 code lines
- [maximhq/bifrost](https://octocounts.com/github/maximhq/bifrost) — Go, 595,698 code lines
- [larksuite/cli](https://octocounts.com/github/larksuite/cli) — Go, 573,902 code lines
- [hashicorp/nomad](https://octocounts.com/github/hashicorp/nomad) — Go, 619,689 code lines
- [UnicomAI/wanwu](https://octocounts.com/github/UnicomAI/wanwu) — Go, 526,611 code lines
- [HaoyueQin/DeepSeek-Reasonix](https://octocounts.com/github/HaoyueQin/DeepSeek-Reasonix) — Go, 519,274 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)
- [OctoCounts API docs](https://octocounts.com/docs/api)
