Hotspots
Find and fix the code that's actually causing problems.
Hotspots analyzes your codebase to find functions that are both complex and frequently changed — the 20% of code responsible for 80% of your bugs, incidents, and feature delays.

Risk Landscape from a real 7,911-function codebase: 284 Critical (red), 491 High (orange). Each dot is a function — top-right are your hotspots.
bash
hotspots analyze src/
# Results show your true priorities:
LRS File Line Function
12.4 src/api/billing.ts 142 processPlanUpgrade # Critical — fix this first
9.8 src/auth/session.ts 67 validateSession # High — watch closely
3.2 src/utils/format.ts 12 formatDate # Low — safe to ignoreWhy Hotspots?
- Objective priorities — Stop arguing about what to refactor. The numbers tell you.
- CI protection — Block new high-complexity functions before they merge.
- Progress tracking — Show stakeholders: "Dropped from 31 critical functions to 23."
Get Started
For Contributors
Maintaining or extending Hotspots? Start with the Codebase Guide for the current implementation map, then use the Contributing Guide for development workflow.
Useful maintainer entry points:
- Analysis Pipeline — how files become reports, snapshots, and deltas.
- Contributor Change Guide — where to make common changes.
- Architecture Notes — design records, invariants, and historical deep dives.
Supported Languages
| Language | Extensions | Status |
|---|---|---|
| TypeScript | .ts, .tsx, .mts, .cts | Full support |
| JavaScript | .js, .jsx, .mjs, .cjs | Full support |
| Go | .go | Full support |
| Python | .py | Full support |
| Rust | .rs | Full support |
| Java | .java | Full support |
All languages get accurate CC, ND, FO, NS metrics, LRS calculation, policy enforcement, suppression comments, delta analysis, and git history integration.