hashicorp/terraform has 600,461 source lines of code out of 755,938 total lines across 4,054 files, counted from the main ref at commit 7a5717566e57 by the OctoCounts tokei engine on 2026-10-22. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
As of 2026-10-22 (commit 7a5717566e57), hashicorp/terraform contains 755,938 total lines: 600,461 code, 73,771 comments, 81,706 blank, across 4,054 files in 12 languages (top: Go 92.9%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving hashicorp/terraform to commit 7a5717566e57, 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 148 code lines per file. Go accounts for 92.9% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Go | 2045 | 706138 | 557604 | 70276 | 78258 |
| JSON | 261 | 27021 | 27020 | 0 | 1 |
| HCL | 1676 | 16994 | 13732 | 813 | 2449 |
| Protocol Buffers | 13 | 3280 | 1608 | 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 | 1556 | 0 | 1181 | 375 |
| Plain Text | 9 | 19 | 0 | 17 | 2 |
Top language (Go 92.9%). Generated at .
hashicorp/terraform has 755,938 total lines, including 600,461 code lines, 73,771 comment lines, and 81,706 blank lines.
OctoCounts resolved the public GitHub repository to commit 7a5717566e57, 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 7a5717566e57 on 2026-10-22T05:13:19.479510566+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for hashicorp/terraform on this page — 600,461 code lines across 12 languages, counted by tokei.