dotnet/roslyn

/errorlogger add analyzer name in rule properties

Open

#13,521 opened on Sep 1, 2016

View on GitHub
 (1 comment) (0 reactions) (0 assignees)C# (4,257 forks)batch import
Area-AnalyzersFeature Requesthelp wanted

Repository metrics

Stars
 (20,414 stars)
PR merge metrics
 (Avg merge 6d 17h) (256 merged PRs in 30d)

Description

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"
      }

Contributor guide