Revert total issues on new code to previous analysis

sonarqube

(Fanny Tan) #1

Hello all,

I got some issues due to human error. Last week I analyzed my project with result:
Overall || On New Code
1000 || 100
Then Yesterday I cloned the project with comit Id of last week. Then I made some fixing on this cloning project and want to analyze it as a new project.
Unfortunately, I make a mistake and this cloning project analysis result is added on the original project history with result:
Overall || On New Code
980 || 100
So, I have to make the result back to last week result. I analyze the original project with commitId of last week, and got this result:
Overall || On New Code
1000 || 120
It seems sonar make this 20 issues as new because they have been fixed but they are open again.

Do you know how to make it back to this result?
Overall || On New Code
1000 || 100

Thank you so much.


(Fanny Tan) #2

Any updates for this issue?


(G Ann Campbell) #3

Hi,

The latest versions of SonarQube wouldn’t have opened new issues. On previous versions, you’re stuck with the behavior you’re seeing.

 
Ann


(Fanny Tan) #4

I am using sonarQube 6.7.5. So I should upgrade to SonarQube 7.6 to handle this kind of problem. Is that correct?


(G Ann Campbell) #5

Hi,

An upgrade will prevent such problems in the future, but it will not fix your current situation.

 
Ann


(Fanny Tan) #6

@ganncamp Alright, thank you :smiley: