dotnet/roslyn

/errorlogger add analyzer name in rule properties

Open

#13,521 创建于 2016年9月1日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)C# (4,257 fork)batch import
Area-AnalyzersFeature Requesthelp wanted

仓库指标

Star
 (20,414 star)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 256 个 PR)

描述

Thanks for the errorlogger switch, it is very useful. I use it in a little project which parse analysis reports and post to build server like AppVeyor, and I wanted to indicate the analyzer at the source of a rule.

Is is possible to add the analyzer name, and maybe a uri if it's available, to the properties of a rule?

Something like:

"S125": {
      "id": "S125",
      "shortDescription": "Sections of code should not be \"commented out\"",
      "fullDescription": "Programmers should not comment out code as it bloats programs and reduces readability. Unused code should be deleted and can be retrieved from source control history if required.",
      "defaultLevel": "warning",
      "helpUri": "http://vs.sonarlint.org/rules/index.html#version=1.16.0&ruleId=S125",
      "properties": {
        "category": "Maintainability",
        "isEnabledByDefault": true,
        "analyzerName": "SonarLint",
        "analyzerUri": "http://vs.sonarlint.org"
      }

贡献者指南