code-dupes 0.2.1

A multi-language CLI tool that detects duplicate and near-duplicate code blocks using AST normalization
1
2
3
4
5
6
7
8
9
10
11
12
use assert_cmd::cargo::cargo_bin_cmd;
use std::path::PathBuf;

pub fn fixture_path(name: &str) -> PathBuf {
    PathBuf::from(env!("CARGO_MANIFEST_DIR"))
        .join("../cargo-dupes/tests/fixtures")
        .join(name)
}

pub fn code_dupes() -> assert_cmd::Command {
    cargo_bin_cmd!("code-dupes")
}