Hello,
We are using sonarqube scanner as a CI step (on bitrise) for iOS projects to generate code coverage and analyse our code for code smells, bugs, etc.
Everything works great but… after opening a pull request if we amend some code, the code coverage only takes in account the lines modified during the amend commit instead of all the code of the pull request. For example:
- I open a PR with 250 lines of changes with coverage at 50%
- Then amend 10 lines of code that aren’t covered
- The code coverage on the PR is 0% for 10 lines to cover, instead of computing the code coverage on all the code of the pull request.
Any clue on how we can fix this? I have no idea if this is a configuration issue or a bug?
Thanks!