You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CodeClimate export of CodeChecker parse (and maybe others) doesn't produce as complete JSON as it could. Its array elements are missing a severity field which makes them not load in GitLab code quality widget. As severity information is readily available it would be quite easy to add it.
The output doesn't qualify as a proper GitLab code quality report. The reason is that in GitLab the severity field is required whereas CodeClimate specification declares it optional. Relevant documentation:
@jmalmari Can you please create a pull request from your branch to our repository? So we can review it more easily and we can merge it inside our repository 😊
CodeClimate export of
CodeChecker parse
(and maybe others) doesn't produce as complete JSON as it could. Its array elements are missing a severity field which makes them not load in GitLab code quality widget. As severity information is readily available it would be quite easy to add it.A GitLab CI job might do the following:
CodeChecker analyze -o ./reports compile_commands.json
CodeChecker parse ./reports -e codeclimate >codeclimate.json
The output doesn't qualify as a proper GitLab code quality report. The reason is that in GitLab the
severity
field is required whereas CodeClimate specification declares it optional. Relevant documentation:Example diff of the wanted JSON file:
[ { "type": "issue", "check_name": "deadcode.DeadStores", "description": "Value stored to 'buffer' is never read", "categories": [ "Bug Risk" ], "fingerprint": "1421455f5cc176089ded56749a5d6535", + "severity": "minor", "location": { "path": "foo.c", "lines": { "begin": 32 } } } ]
I made a proof of concept that works for my purposes: jmalmari/codechecker@ca9f9339
The text was updated successfully, but these errors were encountered: