Solution A: desktop application
Solution B: rest api used by the desktop application
Each solution is a set of .net projects.
Having one sonar project is also a solution but we needs to reconsider the CI jobs for 10 teams. I wanted to be sure that this behavior is a limitation/design issue and not a miss-configuration of sonar tools.
If I understand correctly, in a single repository, you have multiple SonarCloud projects. For each PR in this repository, you run SonarCloud analysis for each project. As such the same PR is shared by multiple SonarCloud projects.
The PR decoration feature was designed with a 1-to-1 mapping in mind between SonarCloud and a repository. Supporting the many-to-1 scenario you describe is not planned for the near future. I’ll raise this point internally.
Hi, thank you for the swift reply. Indeed, we have multiple Sonarcloud projects in one repo. It could be that a PR hits multiple projects, causing multiple Sonarcloud analysis to take place.
To me it seems like Sonarcloud is currently removing all comments before placing new ones after an analysis. So when multiple projects run, only the last analysis is contained. Would it be possible to disable the removal step and have people mark items as ‘Resolved’ (in Azure DevOps) manually? I think that would not only solve the issue, but also helps to make transparent which issues where there and how they were fixed.
It’s not that simple. What if another analysis runs that contains a sub-set of the issues from a previous run? Existing issues would have to be matched with the latest run to avoid creating duplicates.
I found another thread for the scenario we’re discussing here. So this issue is clearly on our radars, let’s continue the discussion there.