The rule-based validation ignores the severity
Issue #592
resolved
Validate the attached file using Checkmate. All problems are reported as priority 0 (low), instead of 0 / 1 / 2.
Comments (2)
-
-
- changed status to resolved
Fix issue
#592: the rule-based validation ignores the severity→ <<cset 8dc892ff3522>>
- Log in to comment
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)