Clean as code Enabled but it not happing run code on newcode

SonarQube Version: 9.9
Newcode config set: 50 days
Enabled Clean as code Feature but we haven’t observed any difference on PR metrics.
Document mentioned it will work on newcode basis, but it not happing it will treat as 50 days code as new code.

Quality gate:
Coverage: 80
Duplicated Lines (%) - 3
Maintainability Rating - A
Reliability Rating - A
Security Hotspots Reviewed - 100
Security Rating - A
Uncovered Lines - 50

Please suggest any other options we need to enable.

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • how is SonarQube deployed: zip, Docker, Helm
  • what are you trying to achieve
  • what have you tried so far to achieve this
    Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Hey there.

The definition New Code for a pull request analysis is always the difference between the source branch and the target branch (the lines of code changed in the PR). Nothing more, nothing less.

Thanks for the confirmation.

Created new PR with existing file some new lines added but it’s not visible on Sonar dashboard exact changes on coverage section on new code.
Can any one help how we can check exact changes on sonarqube.

You’ll have to provide more details (screenshots, analysis logs, build configuration)

Created New PR with below changes

Sonar Dashboard new changes it’s not visible.

Please help me where we can view changes.

Well, it looks like the main branch is being analyzed, and you aren’t performing a Pull Request Analysis.