Skip to main content

Module high_fan_in

Module high_fan_in 

Source
Expand description

high-fan-in native rule — flags files that are imported by too many other files.

High fan-in is a structural design smell: a file with many dependents is a fragile shared dependency — any change to its interface ripples across the codebase.

Requires the structural index (normalize structure rebuild).

§Configuration

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

Functions§

build_high_fan_in_report
Build a DiagnosticsReport for the high-fan-in rule.