Skip to content

chore(lint): enable clippy::dbg_macro#87

Merged
tupe12334 merged 1 commit into
mainfrom
clippy/enable-dbg_macro
Jun 17, 2026
Merged

chore(lint): enable clippy::dbg_macro#87
tupe12334 merged 1 commit into
mainfrom
clippy/enable-dbg_macro

Conversation

@tupe12334

Copy link
Copy Markdown
Member

What

Enable the clippy::dbg_macro restriction lint (deny) in the [lints.clippy] table.

# Forbid leftover `dbg!` debugging macros from reaching production
dbg_macro = "deny"

Why

dbg!() is a debugging aid that prints to stderr and should never ship. This lint prevents accidental debug artifacts from being committed, keeping stderr output intentional. It lives in the restriction group — not covered by the pedantic/nursery/cargo groups already enabled here — so it's a genuinely new check and fits the repo's strict, deny-by-default posture.

Impact

  • 0 violations across lib, binary, and all test targets — zero-churn config change.
  • cargo clippy --all-targets, cargo build, and cargo test all pass locally.

Closes #86

Add the clippy::dbg_macro restriction lint (deny) to [lints.clippy] to
prevent leftover dbg!() debugging macros from reaching production.

0 violations across lib, bin, and test targets; clippy/build/test all pass.

Closes #86

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@tupe12334 tupe12334 merged commit 882993c into main Jun 17, 2026
1 check passed
@tupe12334 tupe12334 deleted the clippy/enable-dbg_macro branch June 17, 2026 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable clippy::dbg_macro lint

1 participant