isMachineReadable reports whether the output format writes a structured document to stdout that must not be interleaved with progress text. Both json and sarif suppress [ocr] progress lines and trace summaries.
(outputFormat string)
| 288 | // document to stdout that must not be interleaved with progress text. |
| 289 | // Both json and sarif suppress [ocr] progress lines and trace summaries. |
| 290 | func isMachineReadable(outputFormat string) bool { |
| 291 | return outputFormat == "json" || outputFormat == "sarif" |
| 292 | } |
| 293 | |
| 294 | // newQuietHandle silences stdout for machine-readable formats (json, sarif) |
| 295 | // or when audience=="agent"; otherwise the returned handle is a no-op |
no outgoing calls
no test coverage detected