You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: scan --format json leaks progress/warn logs to stdout #402
--format json should output only valid JSON to stdout. All progress/warn/debug messages must go to stderr.
Root Cause
In src/commands/scan.rs, progress messages use println! (stdout) instead of eprintln! (stderr).
Impact
Cannot pipe --format json to jq, Python JSON parser, or any JSON consumer
Breaks CI pipelines that expect clean JSON
Affects all --format json consumers
Fix
Replace println! with eprintln! for all progress/warn messages in scan.rs when format is json. Ideally, all progress messages should always go to stderr regardless of format.
Not reproducible. All progress/warn in scan.rs already use eprintln!. JSON output to stdout is clean. The only stdout leak is in review --stream mode (by design for live streaming). Closing as already-fixed.
Activity
ajianaz commentedon Jul 28, 2026
Not reproducible. All progress/warn in scan.rs already use eprintln!. JSON output to stdout is clean. The only stdout leak is in review --stream mode (by design for live streaming). Closing as already-fixed.