dotnet/roslyn

/errorlogger add analyzer name in rule properties

Open

#13.521 aperta il 1 set 2016

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)C# (4257 fork)batch import
Area-AnalyzersFeature Requesthelp wanted

Metriche repository

Star
 (20.414 star)
Metriche merge PR
 (Merge medio 6g 17h) (256 PR mergiate in 30 g)

Descrizione

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

Guida contributor