Add a parser for Roslyn Analyzers SARIF reports - #1524
Conversation
|
Why is it useful to have a dedicated parser class for these, rather than just use the SARIF parser? If the same analyser diagnostics are also in the MSBuild logs, then does something deduplicate them? IIRC, the diagnostics in the MSBuild logs do not include all the same properties that are available via SARIF logs, so they might not match in straightforward equality comparisons. |
I also think that such a parser alias does not help a lot. However, the parser descriptor at least provides a simple way to inform users on how to create the reports. So I don't think that adding this parser harms, it is just a simplification. Or do you have any objections on integrating it, @KalleOlaviNiemitalo? |
|
I'm concerned that having two equivalent parsers available will confuse users. This could be addressed with documentation. I'm not sure |
|
Checked; |
☀️ Quality MonitorTests Coverage for New Code 〰️ Line Coverage: 100.00% Coverage for Whole Project 〰️ Line Coverage: 94.49% Style Bugs API Problems 🚫 Revapi: 1 warning Vulnerabilities 🛡️ OWASP Dependency Check: No vulnerabilities Software Metrics 🌀 Cyclomatic Complexity: 3482 (total) 📌 Reference ResultsDelta reports computed against the reference results of d52c06e in workflow run 26770031087. 🚦 Quality GatesOverall Status: ✅ SUCCESS✅ Passed Gates
Created by Quality Monitor v4.14.3 (#a8d815d). More details are shown in the GitHub Checks Result. |
|
Tried
|
|
I'm not sure what is better. But since the "new" parser does not do anything different from the Sarif parser it makes sense to drop it. Users will pick up the correct options anyway can use the Sarif format as default. Is it ok for you @akash-manna-sky ? |
Let keep it, I will investigate and inform you later. |
Add a parser for
Roslyn AnalyzersSARIF reportsSee : https://github.com/dotnet/roslyn-analyzers
See : https://github.com/dotnet/roslyn
Testing done
Submitter checklist