Skip to content

Checkstyle severity is ignored while importing, which leads to unintended blockers #54

@dkreuer

Description

@dkreuer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions