Hotspots

Files that are both large and changed often are where bugs tend to cluster and where refactoring pays off first. Each file of code in the current tree, tests included, is placed by its size and by the number of commits that changed it, under this name or one it had before; its hotspot score is changes × √lines. Documentation, vendored and generated files, and files without counted lines, such as binary files, are left out.

Files Analyzed
9,698
of 15,692 in the current tree
Top 10 Files
12.8%
of the total hotspot score
Median File Size
85 lines
half of the files are at least this large
Median Changes
3 commits
half of the files changed at least this often

Change frequency by file size

Each dot is a file; a bigger dot is a higher score. The dashed lines mark the median file size and the median number of changes: the large files that change often, in the top right, are in color. The 5 highest scores are numbered as in the list. Both axes are logarithmic. Showing the 2,000 highest-scoring of 9,698 files.

Chart not shown: it is drawn with JavaScript, which is turned off or blocked on this page, as it is on Jenkins by default. How to show the charts

Highest scores

  1. 1packages/protocol/openapi.json34,176 lines · 259 changes
  2. 2packages/tui/src/routes/session/index.tsx4,088 lines · 625 changes
  3. 3packages/client/src/promise/generated/types.ts5,416 lines · 397 changes
  4. 4packages/core/test/session-runner.test.ts7,854 lines · 298 changes
  5. 5packages/app/src/runtime/i18n/en.ts1,640 lines · 453 changes
  6. 6packages/tui/src/component/prompt/index.tsx2,099 lines · 325 changes
  7. 7packages/tui/src/app.tsx1,528 lines · 357 changes
  8. 8packages/data/app/src/routes/index.css9,334 lines · 127 changes

Top hotspots

The files ranked by hotspot score: the larger a file is and the more often it changes, the higher it ranks. Authors is how many people have changed the file, bots aside, as on the Code Ownership page: a hotspot only one person has changed is also a bus-factor risk.

Table: the 100 highest-scoring of 9,698 files