normalize-architecture 0.3.2

Architectural metrics: coupling, cycles, layering, hubs
Documentation
1
2
3
4
5
# normalize-architecture

Pure algorithms and supporting types for architecture analysis of a codebase.

Builds an import graph from the `FileIndex` SQLite database and computes coupling (fan-in/fan-out/instability), hub modules, cross-imports, orphan modules, symbol hotspots, dependency cycles (DFS), longest import chains, layer flows, and layering compliance. Key types: `ImportGraph`, `ModuleCoupling`, `HubModule`, `Cycle`, `CrossImport`, `OrphanModule`, `LayerFlow`, `LayeringModuleResult`. Report structs and `OutputFormatter` impls live in the main `normalize` crate; this crate contains only the pure computation.