New code period vs branch analysis

Im confused about how these 2 things work together

If I scan a branch “new” code is the new code my branch has vs the mainline branch right? so if my branch adds 4 methods and no tests sonar would see coverage of new code for my branch at 0% right?

But how does the new code period work with branch analysis? I want the new code period to be the application’s release version (not a date). If I set the new code period to the release (previous_version) will it break branch analysis?

The New Code Period setting has no effect on the analysis of short branches and pull requests, which always show code changes relative to a base branch. I hope this clears things up!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.