【发布时间】:2016-07-01 00:26:34
【问题描述】:
我在使用 Sonar 分析 C-sharp 代码库时看到一个奇怪的错误。
14:59:19.350 信息 - 适用于 Visual Studio 版本 1.3.0.0 的 SonarLint 14:59:20.154 错误 - 14:59:20.337 错误 - 未处理的异常:System.Collections.Generic.KeyNotFoundException:给定的密钥不是 出现在字典中。 14:59:20.338 错误 - 在 System.Collections.Immutable.ImmutableDictionary`2.get_Item(TKey 键) 14:59:20.340 错误 - 在 SonarLint.Runner.Configuration.AddAnalyzerCommentRegularExpression(生成器 建设者) 14:59:20.341 错误 - 在 SonarLint.Runner.Configuration.Analyzers() 14:59:20.341 错误 - 在 SonarLint.Runner.Program.Main(String[] args)
谁能帮我确定异常指的是什么键?
【问题讨论】:
-
是否可以选择升级 C# 插件?自 SonarLint 1.3 版本以来有 6 个新版本。
-
驱动分析的配置文件中似乎缺少一个条目。您的 .sonarqube/conf 文件夹中应该有一个 SonarLint.xml 文件。你能检查一下属于这个模板规则的部分(注释正则表达式,S124)吗?
-
@Tamas-SonarSourceTeam 查看我的更新,您的意思是 SonarLint.xml 应该在 Sonar 服务器上还是在执行分析的机器上?
标签: c# sonarqube sonarlint sonarlint-vs