[package]
edition = "2024"
rust-version = "1.93"
name = "code-dupes"
version = "0.2.1"
authors = ["Matjaz Domen Pecan <matjaz.pecan@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A multi-language CLI tool that detects duplicate and near-duplicate code blocks using AST normalization"
homepage = "https://github.com/mpecan/cargo-dupes"
readme = "README.md"
keywords = [
"duplicates",
"code-quality",
"lint",
"ast",
]
categories = ["development-tools"]
license = "MIT"
repository = "https://github.com/mpecan/cargo-dupes"
[[bin]]
name = "code-dupes"
path = "src/main.rs"
[[test]]
name = "check"
path = "tests/check.rs"
[[test]]
name = "ignore"
path = "tests/ignore.rs"
[[test]]
name = "language"
path = "tests/language.rs"
[[test]]
name = "options"
path = "tests/options.rs"
[[test]]
name = "report"
path = "tests/report.rs"
[[test]]
name = "sub_function"
path = "tests/sub_function.rs"
[dependencies.clap]
version = "4"
features = ["derive"]
[dependencies.dupes-core]
version = "0.2.1"
features = ["cli"]
[dependencies.dupes-rust]
version = "0.2.1"
[dev-dependencies.assert_cmd]
version = "2"
[dev-dependencies.predicates]
version = "3"
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.tempfile]
version = "3"
[lints.clippy]
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
cognitive_complexity = "warn"
doc_markdown = "allow"
implicit_hasher = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
option_if_let_else = "allow"
too_long_first_doc_paragraph = "allow"
useless_let_if_seq = "allow"
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1