duplicate_code 0.8.1

A tool for parsing directories scanning all the files within to find duplicate segments of code across files.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::model::line_range::LineRange;
use serde::Serialize;

use super::*;

pub type Duplicates = Vec<Duplicate>;

#[derive(Serialize, PartialOrd, PartialEq, Ord, Eq)]
pub struct Duplicate {
    pub file_1: Filename,
    pub file_1_line_range: LineRange,
    pub file_2: Filename,
    pub file_2_line_range: LineRange,
}