What mehen emits
history.hotspot is one of the default mehen diff columns.
Better than the classic form
The open hotspot definition from the literature uses LOC as its complexity proxy because that’s what a history-mining tool can compute without parsing code. mehen has real parsers, so it upgrades the proxy to cognitive complexity summed over the file — a measure of how hard the code actually is to understand, not merely how long it is. The complexity input is family-aware: SQL files usesql.cognitive_complexity and Markdown files use their own
cognitive-load measure, so hotspots aren’t degenerate outside the shared source-code suite.
Note that CodeScene’s prioritization and ranking layer on top of this signal is proprietary and
probabilistic; mehen deliberately implements only the open, reproducible
complexity-times-frequency overlap.
How to read it
References
- Tornhill, A. (2018). Software Design X-Rays. Pragmatic Bookshelf.
- CodeScene hotspots documentation.
See also
- Cognitive complexity — the complexity input.
- Commit frequency — the change-frequency input.