feat: add --quiet flag for summary-only terminal output#12
Merged
ColumbusLabs merged 2 commits intoJun 1, 2026
Conversation
Owner
|
Thanks for the PR! CI is currently failing because the new
Could you add |
ColumbusLabs
approved these changes
Jun 1, 2026
Owner
ColumbusLabs
left a comment
There was a problem hiding this comment.
Review
Looked through the diff after CI passed on Node 20 and 22.
Looks good
--quietis wired CLI →renderReport→renderTerminalwith an early return after the summary block.- Exit code /
--fail-onpath is untouched (only reporting changes). - Tests cover default output, quiet suppression, and empty-scan quiet behavior.
tags: []on the fixture matchesDebtIssue.
Nit (non-blocking)
- Help text says “summary line” but quiet mode still prints the header and scan metadata lines; consider “summary only” if you want the flag description to match output.
Approved from maintainer pass — thanks for the contribution.
added 2 commits
June 1, 2026 12:53
Closes ColumbusLabs#8 - Add `-q, --quiet` option to `debtlens scan` CLI - Pass `quiet` through `renderReport` into `renderTerminal` - In quiet mode, render only the header + summary line, skip all individual findings (file paths, rule names, evidence, suggestions) - Exit code behaviour is unchanged — `--fail-on` still works - Add terminalReporter.test.ts covering quiet and normal output
8d9c1b0 to
7dc3d8d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolves #8
-q, --quietflag todebtlens scan--fail-onstill works correctlyterminalformat; JSON/markdown/SARIF are unaffectedChanges
src/cli/index.ts— add-q, --quietoption to the scan commandsrc/reporters/index.ts— threadquietthroughrenderReportsrc/reporters/terminalReporter.ts— return early after summary lines whenquiet: truetests/reporters/terminalReporter.test.ts— new test file covering quiet and normal output (4 tests)Test plan