Displaying C# compilation warnings in Sonar?

孤者浪人 提交于 2019-12-25 06:07:41

问题


We use Sonarqube for displaying source health, and we have the FxCop integration working and showing the appropriate messages.

However, I can't seem to find any way to also have Sonar show warnings as a rule violation? (CS0169, CS0067, CS1591, etc) I see many of the CAxxxx rules, but nothing for the CSxxxx rules?

Is there something I'm missing? Is it at all possible to show compilation warnings on our page?


回答1:


Thank you for this good feedback. Compiler warnings are not yet supported by the SonarQube C# plugin. The good news is that, with Roslyn, this should now be quite straightforward to implement from a technical point of view. I have commented on the following ticket to make sure we keep track of this feature request: https://jira.sonarsource.com/browse/MMF-113



来源:https://stackoverflow.com/questions/33814291/displaying-c-sharp-compilation-warnings-in-sonar

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!