Master branch detecting new code which has already been merged

Hi SonarCloud,

Recently, we had enabled test coverage and code smells for new code only. We had a release branch (short lived branch) in which all the quality gates passed successful. However, once we merged this release branch to master and analysis was run on master branch, SonarCloud detecting code which has already been merged to master 2 weeks ago.

Our last successful build from master was on the 17th August and most of the issues are prior to this date.

New code definition is set to previous version as ‘Reference branch’ is not available on SonarCloud.