javamachr / sonar-gitlab-plugin

Add to each commit GitLab in a global commentary on the new anomalies added by this commit and add comment lines of modified files
GNU Lesser General Public License v3.0
125 stars 24 forks source link

Plugin should only report new issues since leak period #15

Closed stalb closed 3 years ago

stalb commented 3 years ago

In the old version of the plugin the issues gate (sonar.gitlab.max_blocker_issues_gate, etc.) where used only in preview mode. By default in preview mode only new issues since last analysis (publish mode) where listed.

Since sonarqube 7.7 preview mode has been remove and the issues gate has been enabled also for branch analyses, however all issues of the branch are listed in the commit comment and used in issue gate evaluation.

Proposition : the plugin should only consider for branch analyses (for commit comment and issues gate) issues introduced since sonarqube branch leak period, except if sonar.gitlab.all_issues is true.