问题
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