jihuayu commented on PR #2147:
URL: https://github.com/apache/kvrocks/pull/2147#issuecomment-1987531935

   I have a try, but it doesn't work in my repo. Does it work in your repo?
   
   Following the doc, It seems like the `sonar.newCode.referenceBranch` option 
is only supported by SonarQube.
   In SonarCloud we don't have this option.
   SonarCloud only version and Number of days.
   Maybe we can use the `Specific date` option, and use the last 30 days' code 
as new code in sonarcloud setting. @git-hulk 
   This option can fixed https://github.com/apache/kvrocks/issues/2059.
   
   And the https://github.com/apache/kvrocks/issues/2058 is another problem. I 
am trying it in [my repo](https://github.com/jihuayu/kvrocks-test/pull/2).
   
   ## Refer:
   - [the new code options for 
SonarQube](https://docs.sonarsource.com/sonarqube/latest/project-administration/clean-as-you-code-settings/defining-new-code/#new-code-definition-options)
   - [the new code options for 
SonarCloud](https://docs.sonarsource.com/sonarcloud/improving/new-code-definition/#new-code-definition-options)
   - [the SonarCloud PR 
example](https://docs.sonarsource.com/sonarcloud/advanced-setup/ci-based-analysis/other-cis/)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to