Skip to main content

Module high_fan_out

Module high_fan_out 

Source
Expand description

high-fan-out native rule — flags files that import from too many other files.

High fan-out is a structural design smell: a file coupled to many others becomes a change magnet and makes the system harder to reason about in isolation.

Requires the structural index (normalize structure rebuild).

§Configuration

[rules.rule."high-fan-out"]
threshold = 15   # default: 20

Functions§

build_high_fan_out_report
Build a DiagnosticsReport for the high-fan-out rule.