Setting C# 6.0 rules in SonarQube 5.1

廉价感情. 提交于 2019-12-12 03:32:33

问题


I installed SonarQube version 5.1 and running it against C# code. The results of the analysis were quite OK, but i was expecting that Sonar would point out the issues based on the latest C# 6.0( which is current now) features too, which seems missing.

Can anyone let me know if i can add new C#6.0 features in some sort of plugin? I am not sure if i can add custom rules for C#, as i couldn't find in their website for c#( found here- http://docs.sonarqube.org/display/DEV/Writing+Custom+Rules+using+Java)


回答1:


We are starting to support custom rules for C# with the SonarQube Roslyn SDK, which let's you package your custom Roslyn analyzer Nuget package as a SonarQube plugin.



来源:https://stackoverflow.com/questions/35901273/setting-c-sharp-6-0-rules-in-sonarqube-5-1

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