pub trait FileAnalyzer: Send + Sync {
// Required methods
fn analyze(&self, file: &str, staged_file: &StagedFile) -> Vec<String>;
fn get_file_type(&self) -> &'static str;
fn extract_metadata(&self, file: &str, content: &str) -> ProjectMetadata;
}
Expand description
Trait for analyzing files and extracting relevant information