pub struct IntraFileDupDetector;Expand description
Intra-file code duplication detector (chunk-based line matching).
Splits a file into N-line chunks, normalizes them (strips comments), and flags chunks that appear more than once. Chunk size of 5 and requirement of 2+ spaced-out occurrences reduces false positives from repetitive but unrelated code.
Implementations§
Source§impl IntraFileDupDetector
impl IntraFileDupDetector
pub fn check(file: &ParsedFile) -> Vec<CodeIssue>
Auto Trait Implementations§
impl Freeze for IntraFileDupDetector
impl RefUnwindSafe for IntraFileDupDetector
impl Send for IntraFileDupDetector
impl Sync for IntraFileDupDetector
impl Unpin for IntraFileDupDetector
impl UnsafeUnpin for IntraFileDupDetector
impl UnwindSafe for IntraFileDupDetector
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