What is the New Code Period set in PR analysis?

Hello!

Sonar version: Enterprise Edition - Version 9.9.1

I’d like to understand how the New Code Period is set in PR analysis.

I’ve found this documentation regarding my question: Pull Request analysis However, it was insufficient.

Which code is the Pull Request Analysis actually analysing, is it the same code that it’s respective branch had just analysed? Or just the new code appended by the branch?

I’m rather confused.

Thanks for your attention

Putting aside what actually gets analyzed in the CI by the scanner (which can vary depending on what cache exists on the server), the analysis results you see in SonarQube are the changed files/lines in the Pull Request. If it’s anything more – something is going wrong!

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