The rule-based validation ignores the severity

Issue #592 resolved
Former user created an issue

Validate the attached file using Checkmate. All problems are reported as priority 0 (low), instead of 0 / 1 / 2.

Comments (2)

  1. Mihai Nita

    It is caused by the fact that the severity in the regexp-rules uses values of 0 / 1 / 2, and the PatternsChecker uses that as a priority.

    But priorities are in the 0 - 100, only displaySeverity is 0 / 1 / 2. So when the Issue is created the mapSeverityToDisplay is called and maps the priority from the rule to the display one. And they all go to 0 (0-2 for something expected to be in the range 0-100 is mapped to 0 display severity)

  2. Log in to comment