Expand description
Typed data contract and builder for fallow viz.
The CLI runs one project analysis (dead code + duplication + complexity)
through crate::session::AnalysisSession and hands the retained
artifacts to build_viz_data. The resulting VizData is embedded as
JSON in the self-contained interactive HTML the viz command writes.
The contract is engine-owned so the graph internals never leak past the engine boundary: everything the frontend needs is resolved to file indices, relative paths, and plain counts here.
Structs§
- VizBuild
Input - Everything
build_viz_dataneeds from one project analysis run. - VizClone
Group - One clone group resolved to file indices.
- VizClone
Instance - One location of a duplicated block.
- VizData
- Serialized payload embedded in the viz HTML.
- VizFile
- One analyzed source file.
- VizFunction
- One function inside a file, with its complexity metrics.
- VizSummary
- Project-wide totals for the header stat boxes.
- VizViolation
- One boundary violation resolved to file indices.
- VizWorkspace
- One discovered workspace.
- VizZone
- One configured boundary zone.
Enums§
- VizFile
Status - Dead-code status of a file, ordered by severity in the frontend.
Functions§
- build_
viz_ data - Build the viz payload from one project analysis run.