As of 2026-09-07 (commit 7b8c301b55dd), hashicorp/terraform contains 745,609 total lines: 591,821 code, 73,091 comments, 80,697 blank, across 3,980 files in 12 languages (top: Go 92.8%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving hashicorp/terraform to commit 7b8c301b55dd, 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.
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 | 1999 | 696201 | 549323 | 69592 | 77286 |
| JSON | 261 | 27021 | 27020 | 0 | 1 |
| HCL | 1648 | 16578 | 13374 | 807 | 2397 |
| Protocol Buffers | 13 | 3279 | 1607 | 1243 | 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 | 1581 | 0 | 1191 | 390 |
| Plain Text | 9 | 19 | 0 | 17 | 2 |
Top language (Go 92.8%). Generated at .
hashicorp/terraform has 745,609 total lines, including 591,821 code lines, 73,091 comment lines, and 80,697 blank lines.
OctoCounts resolved the public GitHub repository to commit 7b8c301b55dd, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from main at commit 7b8c301b55dd on 2026-09-07T08:26:20.861918697+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: