SecurityAnalyzer

Trait SecurityAnalyzer 

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

Source

fn analyze_project( &self, project_root: &Path, ) -> Result<SecurityReport, Self::Error>

Analyze a project for security issues

Source

fn config(&self) -> &Self::Config

Get the analyzer’s configuration

Source

fn supported_extensions(&self) -> Vec<&'static str>

Get supported file extensions for this analyzer

Implementors§