home-assistant/core

home-assistant/core has 1,725,223 source lines of code out of 2,033,359 total lines across 15,770 files, counted with tokei from the dev ref at commit f22ddb04fe96 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

As of 2026-11-16 (commit f22ddb04fe96), home-assistant/core contains 2,033,359 total lines: 1,725,223 code, 44,918 comments, 263,218 blank, across 15,770 files in 12 languages (top language: Python 83.5%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

As of 2026-11-16 (commit f22ddb04fe96), home-assistant/core contains 2,033,359 total lines: 1,725,223 code, 44,918 comments, 263,218 blank, across 15,770 files in 12 languages (top language: Python 83.5%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving home-assistant/core to commit f22ddb04fe96, 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.

Repository size insights

This is a very large codebase by counted code lines. Code represents 84.8% of all lines, comments represent 2.2%, and the repository averages 109 code lines per file. Python accounts for 83.5% of counted code.

LanguageFilesLinesCodeCommentsBlanks
Python112541736676144047737978258221
JSON3565215015215001014
YAML896661496227417952080
INI1703563073725
TOML12109585815780
Shell92251434141
Dockerfile3113762116
BASH386591017
ReStructuredText1332409
Autoconf24400
Markdown17284702074773
Plain Text74081028391242

Top language: Python 83.5%. Generated on .

Counting rules and retention

home-assistant/core: 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.

Reproduce this report

Reproduce this exact report and configuration.

Report FAQ

How many lines of code does home-assistant/core have?

home-assistant/core has 1,725,223 lines of code, plus 44,918 comment lines and 263,218 blank lines, for 2,033,359 total lines at commit f22ddb04fe96 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

How was the home-assistant/core line count measured?

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

What commit was counted for home-assistant/core?

This OctoCounts report was generated from dev at commit f22ddb04fe96 on November 16, 2026.

Play the growth animation for home-assistant/core on this page — 1,725,223 code lines across 12 languages, counted by tokei.