【发布时间】:2017-03-13 07:48:39
【问题描述】:
我正在尝试使用 System.Diagnostics.CodeAnalysis.SuppressMessage 属性来阻止 sonarqube 在我们代码库中的特定方法上引发此问题。我不确定抑制消息属性应该采用什么形式。我尝试了以下几种变体,但没有成功。
[SuppressMessage("csharpsquid", "S1871:Two branches in the same conditional structure should not have exactly the same implementation")]
public static string SomeMethod(string input)
这里是问题文档的链接:http://dist.sonarsource.com/plugins/csharp/rulesdoc/0.9.0-RC/S1871.html
使用:sonar-csharp-plugin-5.3.2
【问题讨论】:
-
SonarQube C# 插件的版本是多少?
-
嗨塔马斯,声纳-csharp-plugin-5.3.2
标签: c# sonarqube suppressmessage