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§
- VizAvailability
- Count contract and availability for one analysis family.
- 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.
- VizFinding
- Stable presentation record shared by finding-oriented Viz families.
- VizFinding
Action - One stable action projected from an analyzer-specific record.
- VizFinding
Analysis - One finding-oriented analysis family.
- VizFinding
Fact - One stable scalar fact from an analyzer-specific record.
- VizFramework
Data - Framework findings plus detector capability metadata.
- VizFramework
Detector - Status of one framework-specific detector.
- VizFunction
- One function inside a file, with its complexity metrics.
- VizHealth
Capabilities - Availability of the individual Health signal families.
- VizHealth
Data - Health lens payload populated after the shared health runner completes.
- VizHealth
File - Real file-health metrics.
- VizSecurity
Blind Spot - Explicitly counted security blind spot.
- VizSecurity
Candidate - Static security candidate. The record deliberately contains no exploitability verdict.
- VizSecurity
Data - Security lens payload. Runtime evidence is a separate capability from the always-local static candidate pass.
- VizSecurity
Endpoint - One endpoint in a typed Security taint flow.
- VizSecurity
Taint Flow - Typed source-to-sink flow summary.
- VizSecurity
Trace Hop - One hop in a static security trace.
- VizStyling
Data - Styling findings plus the project-level CSS analytics and score.
- 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§
- VizAvailability
State - Honest availability state for one Viz analysis family.
- VizFile
Status - Dead-code status of a file, ordered by severity in the frontend.
Functions§
- apply_
health_ report - Populate Health, Framework diagnostics, and Styling from the health runner that consumed the same session artifacts.
- build_
viz_ data - Build the viz payload from one project analysis run.