pub trait Analysis {
type Output: Serialize;
// Required methods
fn name(&self) -> &str;
fn run(&self, ctx: &AnalysisContext<'_>) -> Self::Output;
}Expand description
An analysis computes structured data about the graph.
Rules consume analysis results and map them to diagnostics.
Metrics extract scalar values from analysis results.
See docs/analyses for conceptual documentation on each analysis.