godModules

fun godModules(graph: ModuleDependencyGraph, fanInThreshold: Int = DEFAULT_GOD_FAN_IN_THRESHOLD, fanOutThreshold: Int = DEFAULT_GOD_FAN_OUT_THRESHOLD): List<ModuleNode>(source)

Identifies "god modules" - modules with both high fan-in AND high fan-out. These are architectural hotspots that are hard to change and test.

Parameters

fanInThreshold

Minimum fan-in to be considered a god module (default: 5)

fanOutThreshold

Minimum fan-out to be considered a god module (default: 5)