Example of the creating markdown table from the gl-code-quality-report.json
Gitlab's code quality report with codeclimate SPEC.
- Install
jq
- Run the next command to convert
gl-code-quality-report.json
to markdown:jq -r '. | sort_by((.location.path | explode | map(-.)), .location.lines.begin) | .[] | @text "| [\(.location.path):\(.location.lines.begin)](../blob/BRANCH-NAME/\(.location.path)#L\(.location.lines.begin)) | \(.description)"' gl-code-quality-report.json
- Add table header to the beggigning of the output:
| Path | Description |