Skip to content

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.

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 ignore

Why 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


Supported Languages

LanguageExtensionsStatus
TypeScript.ts, .tsx, .mts, .ctsFull support
JavaScript.js, .jsx, .mjs, .cjsFull support
Go.goFull support
Python.pyFull support
Rust.rsFull support
Java.javaFull support

All languages get accurate CC, ND, FO, NS metrics, LRS calculation, policy enforcement, suppression comments, delta analysis, and git history integration.

Released under the MIT License. · hotspots.dev