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
15
macro_rules! assert_indexed_files {
    ($snapshot_name:expr, $raw_files:expr) => {
        assert_indexed_files_with_ignore_line_regex!($snapshot_name, vec![], $raw_files);
    };
}

macro_rules! assert_indexed_files_with_ignore_line_regex {
    ($snapshot_name:expr, $ignore_line_regex:expr, $raw_files:expr) => {
        let indexed_files =
            crate::model::indexed_file::to_indexed_files($ignore_line_regex, $raw_files);

        // Then
        insta::assert_json_snapshot!($snapshot_name, indexed_files);
    };
}