We have a large repository with a main master branch, where dozens of Merge Requests (MRs) are created every day. We use Sonar to analyze merge requests for new code.
A couple of questions:
- If we, for example, created an MR into the master branch, but for some reason, this master branch did not build with Sonar and Sonar does not have the latest statistics on it. Will this in any way affect what we see in the MR report for the new code? Especially regarding the identification of new lines that need to be covered by tests.
- There is a flow where the Jenkins plugin performs a pre-merge operation before building the project (merging master into the MR branch), how will Sonar behave in this case? Will the new code be incorrectly identified?