# hashicorp/terraform SLOC report

> As of 2026-09-21 (commit 78194be60cda), hashicorp/terraform contains 749,866 total lines: 595,502 code, 73,274 comments, 81,090 blank, across 4,021 files in 12 languages (top: Go 92.8%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

hashicorp/terraform has 595,502 source lines of code out of 749,866 total lines across 4,021 files, counted from the main ref at commit 78194be60cda by the OctoCounts tokei engine on 2026-09-21. 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 hashicorp/terraform to commit 78194be60cda, 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 148 code lines per file. Go accounts for 92.8% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Go | 2,013 | 700,075 | 552,651 | 69,780 | 77,644 |
| JSON | 261 | 27,021 | 27,020 | 0 | 1 |
| HCL | 1,675 | 16,985 | 13,726 | 812 | 2,447 |
| Protocol Buffers | 13 | 3,280 | 1,608 | 1,243 | 429 |
| 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,556 | 0 | 1,181 | 375 |
| Plain Text | 9 | 19 | 0 | 17 | 2 |

Top language (Go 92.8%). Generated at 2026-09-21T09:05:51.235231757+00:00. Canonical report: https://octocounts.com/github/hashicorp/terraform

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/hashicorp/terraform/commit/78194be60cdab9c71ea1caf5e5c0b4d96e2c3691?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).

## Report FAQ

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

hashicorp/terraform has 749,866 total lines, including 595,502 code lines, 73,274 comment lines, and 81,090 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 78194be60cda, 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 78194be60cda on 2026-09-21T09:05:51.235231757+00:00.

## Similar repository reports

- [Tencent/WeKnora](https://octocounts.com/github/Tencent/WeKnora) — Go, 602,679 code lines
- [hashicorp/nomad](https://octocounts.com/github/hashicorp/nomad) — Go, 619,689 code lines
- [rorkai/App-Store-Connect-CLI](https://octocounts.com/github/rorkai/App-Store-Connect-CLI) — Go, 636,077 code lines
- [larksuite/cli](https://octocounts.com/github/larksuite/cli) — Go, 646,908 code lines
- [AgentsMesh/AgentsMesh](https://octocounts.com/github/AgentsMesh/AgentsMesh) — Go, 664,506 code lines
- [looplj/axonhub](https://octocounts.com/github/looplj/axonhub) — Go, 670,263 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)
