-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimise human readable output for narrow terminals #85
Comments
Re-opening as #87 was a partial fix/mitigation. |
Thanks for trying osv-scanner and opening this issue! We've made some changes to mitigate this, and released https://github.com/google/osv-scanner/releases/tag/v1.0.2 which includes:
Most of our team is out for the rest of the year, but once we're back early next year we'll work on improving this further! |
Thanks ! |
@oliverchang @another-rex this could be a good time to talk about supporting the output style of
what do you think? |
I do like how that looks, we can add a flag like e.g. |
I believe there's no more remaining work here? (@another-rex please reopen if I'm wrong). |
This adds a new "vertical" output format that is designed for humans and based on the output of `osv-detector`, which effectively aims to group the output relating to each entity being scanned in vertical slices: <img width="898" alt="image" src="https://github.com/google/osv-scanner/assets/3151613/61297153-5c22-43a4-a78e-e07ce648142a"> Unfortunately I think it suffers significantly due to the assumptions made by the rest of the codebase for outputting that made sense when the final output was a table i.e. we dump a lot of information as we go about scanning, config files, vulnerability filtering, and so on that really should be grouped but currently cannot because they're all outputted at different stages - I think a way to address that could be using some sort of event-emitter type pattern so that the reporters could be responsible for deciding what they actually do (e.g. `r.Emit("filtered-vulnerability", ...)` and then most reporters could choose to just print immediately, and ones like "vertical" could choose to add it to an internal struct), but I think that'll involve a lot more work; for now I'm just going to ignore the pre-results output. Resolves #85
When using the default textual output and the SOURCE path is long enough, the output is truncated.
All lines end with a
≈
and are truncated which make the output unusable because it misses the OSV URL entirely.I know about the JSON output, but I'd like to have an untruncated textual output too because it is more readable.
The text was updated successfully, but these errors were encountered: