Skip to content

Instantly share code, notes, and snippets.

@gregorriegler
Last active March 9, 2022 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregorriegler/b4390e65f6bf02fd7f2b6ac34a87e14b to your computer and use it in GitHub Desktop.
Save gregorriegler/b4390e65f6bf02fd7f2b6ac34a87e14b to your computer and use it in GitHub Desktop.
Sonar Json to Csv
jq -r '["Severity", "Type", "Rule", "File", "Line", "Description"], (.issues[] | [.severity, .type, .rule, .component, ((.textRange.startLine // ""|tostring) + "-" + (.textRange.endLine // ""|tostring)), .message]) | @csv' search.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment