QUAL005infoPro

print-statement

Print statements are typically debugging code that shouldn't be committed

Applies to: Go, JavaScript, Python, Ruby, Rust, TypeScript

Why this matters

print() and console.log() are usually leftover debugging code. In production, they clutter logs, can expose sensitive data, and indicate incomplete cleanup. Use a proper logging framework instead.

Catch it before it ships

pip install stablestack # or: npx stablestackstablestack # scans your project, QUAL005 includedstablestack explain QUAL005

QUAL005 is part of the Pro rule set. See pricing — the free tier ships 24 checks with no signup.

False positive in your codebase? Suppress a single line with # noqa: QUAL005