cake-contrib / Cake.Recipe

:page_with_curl: A set of convention based Cake scripts
https://cake-contrib.github.io/Cake.Recipe
MIT License
70 stars 53 forks source link

Add support for SonarQube #501

Open AdmiringWorm opened 4 years ago

AdmiringWorm commented 4 years ago

Would be nice to see support for running SonarQube during the build being added to Cake.Recipe so it can be integrated with SonarCloud (or an on-premise instance of SonarQube).

pascalberger commented 4 years ago

@AdmiringWorm What kind of integration are you expecting? I've the idea of the providing a plugin to Cake.Issues to create output in the generic issue data format (see Cake.Issues.Reporting.SonarQube). This could be integrated into Cake.Issues.Recipe (which is used by Cake.Recipe). This would allow to report any kind of issues which Cake.Issues knows to SonarQube (with some drawbacks, e.g. that generic issues can't be used in quality profiles). The other possibility would be to use the MsBuild Scanner and let it build & analyze the solution. This would limit integration to issues from Roslyn analyzers.

AdmiringWorm commented 4 years ago

IMO, not having the ability to use the custom quality profiles with the generic approach would not make it a viable option for this (at least not in my case).

Anyways, I was thinking integration with the MsBuild Scanner or maybe through the dotnet sonar scanner.