Skip to main content

Module viz

Module viz 

Source
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§

VizBuildInput
Everything build_viz_data needs from one project analysis run.
VizCloneGroup
One clone group resolved to file indices.
VizCloneInstance
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§

VizFileStatus
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.