pub trait SecurityAnalyzer {
type Config;
type Error: Error;
// Required methods
fn analyze_project(
&self,
project_root: &Path,
) -> Result<SecurityReport, Self::Error>;
fn config(&self) -> &Self::Config;
fn supported_extensions(&self) -> Vec<&'static str>;
}Expand description
Base security analyzer trait
Required Associated Types§
Required Methods§
Sourcefn analyze_project(
&self,
project_root: &Path,
) -> Result<SecurityReport, Self::Error>
fn analyze_project( &self, project_root: &Path, ) -> Result<SecurityReport, Self::Error>
Analyze a project for security issues
Sourcefn supported_extensions(&self) -> Vec<&'static str>
fn supported_extensions(&self) -> Vec<&'static str>
Get supported file extensions for this analyzer