{
"id": "rust-dbg-macro",
"language": "rust",
"group": "style",
"listingTitle": "Remove Rust debug output",
"title": "Remove Rust debug output",
"mvvm": false,
"defaultSeverity": "info",
"legacyGroup": "nim-style",
"why": "dbg! writes file, line, expression, and value details to stderr in production builds.",
"suggestion": "Remove the debug call or replace it with deliberate structured logging.",
"version": 6,
"semanticMaturity": "token",
"securityKind": "none",
"taxonomy": [
"style"
],
"requirements": [
"sourceText"
],
"packs": [
"rust",
"cargo"
],
"implementation": "src/languages/rust/rules.rs",
"languages": [
"rust"
],
"frameworks": [],
"languageVersions": [],
"limitations": [
"The rule uses masked source tokens and does not perform Rust type resolution."
]
}