Last active
March 9, 2022 18:54
-
-
Save gregorriegler/b4390e65f6bf02fd7f2b6ac34a87e14b to your computer and use it in GitHub Desktop.
Sonar Json to Csv
This file contains 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
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