pub struct FileAnalyzer;Expand description
File context analyzer.
Implementations§
Source§impl FileAnalyzer
impl FileAnalyzer
Sourcepub fn analyze_file(path: &Path, change_type: &str) -> FileContext
pub fn analyze_file(path: &Path, change_type: &str) -> FileContext
Analyzes a file and determines its context within the project.
Sourcepub fn analyze_file_set(files: &[(PathBuf, String)]) -> Vec<FileContext>
pub fn analyze_file_set(files: &[(PathBuf, String)]) -> Vec<FileContext>
Analyzes multiple files to understand the scope of changes.
Sourcepub fn analyze_commits(commits: &[CommitInfo]) -> Vec<FileContext>
pub fn analyze_commits(commits: &[CommitInfo]) -> Vec<FileContext>
Analyzes file changes across a range of commits, deduplicating by path.
When a file appears in multiple commits, the status from the last (most recent) commit wins. This provides the most accurate signal for significance analysis.
Sourcepub fn primary_architectural_impact(
contexts: &[FileContext],
) -> ArchitecturalLayer
pub fn primary_architectural_impact( contexts: &[FileContext], ) -> ArchitecturalLayer
Determines the primary architectural impact of a set of file changes.
Sourcepub fn is_architectural_change(contexts: &[FileContext]) -> bool
pub fn is_architectural_change(contexts: &[FileContext]) -> bool
Determines if the file changes suggest a significant architectural change.
Auto Trait Implementations§
impl Freeze for FileAnalyzer
impl RefUnwindSafe for FileAnalyzer
impl Send for FileAnalyzer
impl Sync for FileAnalyzer
impl Unpin for FileAnalyzer
impl UnsafeUnpin for FileAnalyzer
impl UnwindSafe for FileAnalyzer
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