kvrocks icon indicating copy to clipboard operation
kvrocks copied to clipboard

SonarCloud analysis run on unstable branch has wrong `New issues` num

Open jihuayu opened this issue 1 year ago • 3 comments

Refer: https://github.com/apache/kvrocks/runs/20889223274

jihuayu avatar Jan 27 '24 00:01 jihuayu

Here are some clues. The "new code" displayed on SonarCloud is based on the code from November 23rd. How can we adjust it?

d56811384ac52f05d7c2546943d9be5

jihuayu avatar Jan 27 '24 00:01 jihuayu

https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/analysis-parameters/ Maybe we need to set sonar.newCode.referenceBranch?

We can consider the code from the last release version(now 2.7) to the newest commit as the new code.

jihuayu avatar Jan 27 '24 01:01 jihuayu

Add PR #2147

aleksraiden avatar Mar 09 '24 22:03 aleksraiden