get-shit-done's CLI core carries the highest activity risk — 5 functions to address first

All five top hotspots in gsd-build/get-shit-done are 'fire'-quadrant god functions in the CLI layer, combining CC values up to 181 with nesting depths up to 15 and active recent commit churn.

Stephen Collins ·
oss javascript refactoring code-health

Antipatterns Detected

complex_branching 5 deeply_nested 5 exit_heavy 5 god_function 5 long_function 5

Top pattern: complex_branching

Key Points

What is a god function and why does it matter in get-shit-done?

A god function is a single function that has grown to handle too many responsibilities at once, accumulating branching logic, deeply nested conditions, and calls to a large number of other functions. In get-shit-done, all five top hotspots are flagged as god functions — `runCommand` alone calls 108 distinct functions — meaning a bug or change in any one of them can ripple unpredictably across a wide portion of the codebase. The practical risk is that the more a god function does, the harder it is to reason about, test exhaustively, or change safely.

How do I reduce cyclomatic complexity in JavaScript?

The most direct technique is the extract-method refactoring: identify cohesive groups of conditional logic inside a large function and pull them into named, single-purpose helper functions, each of which can be tested in isolation. For functions like `runCommand` with a cyclomatic complexity of 181, decomposing by command type or execution phase can reduce each sub-function's complexity to a manageable range while making the top-level dispatcher read as a straightforward routing table.

Is get-shit-done actively maintained?

The structural data strongly suggests it is: all five top hotspots are classified in the 'fire' quadrant, meaning they combine high structural complexity with high recent commit activity. `runCommand` carries a risk score of 21.7 and `install` scores 21.5 — the highest in the dataset — indicating the CLI core is being actively developed at the same time it carries its highest structural risk.

How do I reproduce this analysis?

Run the Hotspots CLI against the gsd-build/get-shit-done repository at commit 2205a85 to reproduce these results.

What does activity-weighted risk mean?

Complexity × recent commit frequency — functions that are hard to understand AND actively changing are the highest priority for refactoring.

Explore every function analyzed

Enter your email to unlock — free, no spam.

We'll remember your email so you don't have to re-enter it on future analyses.

Pro $20 / mo

Full dataset + API access

Query any repo we've analysed. Export raw metrics. Integrate into your own tooling. Currently in waitlist — no billing yet.

Want this for your own codebase?

Hotspots runs locally in under a minute — no account, no data leaves your machine. Or submit your repo and we'll send you a report.

Related Analyses