apache / kvrocks

Apache Kvrocks is a distributed key value NoSQL database that uses RocksDB as storage engine and is compatible with Redis protocol.
https://kvrocks.apache.org/
Apache License 2.0
3.44k stars 442 forks source link

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

Open jihuayu opened 7 months ago

jihuayu commented 7 months ago

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

jihuayu commented 7 months ago

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 commented 7 months ago

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.

aleksraiden commented 5 months ago

Add PR #2147