Skip to content

CM-45719 - Add syntax highlight for code snippets in text output #290

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

Merged

Conversation

MarshalX
Copy link
Collaborator

Changes:

  • add colorful severity
  • add clickable file path
  • add syntax highlight
  • add a line with detection highlight when printing multi-line snippet
  • remove secret SHA, scan ID, and rule ID fields from printing
  • fix right label on the progress bar
  • fix line numbers in the code snippet

DEMO

Before:
image

After:
image

not the final result; gonna tune it even more later (in other PRs); there is a lack of grouping/sorting etc

@MarshalX MarshalX merged commit f4ae0fa into renovation Mar 26, 2025
10 checks passed
@MarshalX MarshalX deleted the CM-45719-add-code-snippets-with-syntax-highlighting branch March 26, 2025 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants