pub struct CodeAnalyzer { /* private fields */ }Implementations§
Source§impl CodeAnalyzer
impl CodeAnalyzer
pub fn new(exclude_patterns: &[String], lang: &str) -> Self
pub fn infection_spread( &self, ) -> HashMap<String, Vec<(String, usize, Vec<String>)>>
pub fn with_config( exclude_patterns: &[String], _lang: &str, config: ProjectConfig, ) -> Self
pub fn with_detectors(self, detectors: Vec<Box<dyn SignalDetector>>) -> Self
pub fn direct_signal_scores(&self) -> HashMap<StyleSignal, f64>
Sourcepub fn analyze_path(&self, path: &Path) -> Vec<CodeIssue>
pub fn analyze_path(&self, path: &Path) -> Vec<CodeIssue>
Compatibility wrapper — runs the full pipeline and converts back to CodeIssues.
Sourcepub fn analyze_to_findings(&self, path: &Path) -> Vec<StyleFinding>
pub fn analyze_to_findings(&self, path: &Path) -> Vec<StyleFinding>
Full analysis pipeline returning StyleFindings.
- Phase 1: Parse all files and cache
ParsedFiles - Phase 2: Cross-file duplication detection
- Phase 3: Intra-file duplication detection
- Phase 4: Direct signal detection (scores + findings)
Also populates self.direct_scores for downstream consumers.
pub fn analyze_full(&self, path: &Path) -> FullAnalysisResult
pub fn analyze_file(&self, file_path: &Path) -> Vec<CodeIssue>
Auto Trait Implementations§
impl !Freeze for CodeAnalyzer
impl !RefUnwindSafe for CodeAnalyzer
impl Send for CodeAnalyzer
impl !Sync for CodeAnalyzer
impl Unpin for CodeAnalyzer
impl UnsafeUnpin for CodeAnalyzer
impl !UnwindSafe for CodeAnalyzer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more