Modified code is not reflecting in sonarqube

We have modified the code after the issues reported in sonarqube
But for the next scan the sonarqube doesn’t show the modified code
Can anyone please let me know what to do here.

Version : * Developer Edition* Version 9.5 (build 56709)

In sonarqube after modification

Project Code after modification

Hey there.

There are typically only three explanations:

  1. The modified source code isn’t actually checked out when analysis is being performed
  2. The analysis fails (either the scan fails, or the processing of the background task which you can check at Project Settings > Background Tasks)
  3. The modified code is in a branch/pull request, and you’re looking at the wrong branch (possibly the Main Branch) in SonarQube.