While importing a checkstyle report the severity is ignored.
Every checkstyle error is mapped to failure, see
|
$case->failure = new SourceCaseOutput($type, $error->get('message'), self::getDetails($error)); |
This leads to severity "blocker" when generating Gitlab-CodeQuality-Json documents which leads to false information in the Gitlab UI.
A better severity may be "info" in these cases (if not being configurable) - or the default level "major" albeit this is even too much for my liking.
For more context: I create a PHP CodeSniffer Checkstyle Report which has warnings as severity "warning" where warnings do not fail the CI job but errors do.