pub trait Plugin: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn analyze(&self, ctx: &AnalysisContext<'_>) -> Vec<Finding>;
// Provided methods
fn version(&self) -> &str { ... }
fn description(&self) -> &str { ... }
fn authors(&self) -> Vec<String> { ... }
}Expand description
Core trait that all analyzers implement.
Required Methods§
Sourcefn analyze(&self, ctx: &AnalysisContext<'_>) -> Vec<Finding>
fn analyze(&self, ctx: &AnalysisContext<'_>) -> Vec<Finding>
Run analysis on a single file and return findings.
Provided Methods§
Sourcefn description(&self) -> &str
fn description(&self) -> &str
Short description of what the plugin detects.
List of authors.