I'm using SonarQube 5.1.2.
I would like to configure a Quality Gate for SonarQube projects.
However, because these are legacy projects, according to existing rules, we have already some blocker and critical issues
I would like to define a Quality Gate based on the new issues that will appear from now on, and promote a continuous decrease on those issues while not allowing new blocker issues to be introduced.
For instance, I could use the criteria "New Blocker Issues" since a given date, but won't work exactly as I would like, because if someone adds a blocker issue, but while that, someone resolves an existing blocker issue, the balance will be null, and thus the quality gate won't change to 'red'.
In another hand, if I configure the threshold "Blocker issues", value > 0, since last analysis, won't work also, because the next time SonarQube runs, if no new blocker issues are introduced, the quality gate will change to 'green' even the new blocker issue in previous analysis was not fixed at all.
Instead, I was expecting that SonarQube was able to actually detect "new issues" (not the difference in the amount of them), and keep counting them as "new" because we want to enforce that no new "Blocker issues" are introduced for that period, while existing issues are resolved.
Is there a way to configure the Quality Gate to reflect this?
Maybe I'm simply configuring it in the wrong way. I found 2 criteria: "Blocker issues" and "New blocker issues" but they seem to behave exactly the same when combined with a period.