CLI: Include compiler diagnostics in the xml output file of the roslynator analyze
command
#959
Answered
by
PeterKaszab
PeterKaszab
asked this question in
Q&A
-
Is there a way to include compiler diagnostics in the XML output file of the Thanks in advance. Example:<?xml version="1.0" encoding="utf-8"?>
<Roslynator>
<CodeAnalysis>
<Summary>
<Diagnostic Id="CA1822" Title="Mark members as static" Count="1" />
<Diagnostic Id="CS0168" Title="Variable is declared but never used" Count="2" />
</Summary>
<Projects>
<Project Name="ConsoleApp" FilePath="C:\ConsoleApp\ConsoleApp\ConsoleApp.csproj">
<Diagnostics>
<Diagnostic Id="CA1822">
<Severity>Info</Severity>
<Message>Mark members as static</Message>
<FilePath>C:\ConsoleApp\ConsoleApp\Program.cs</FilePath>
<Location Line="11" Character="20" />
</Diagnostic>
</Diagnostics>
</Project>
</Projects>
</CodeAnalysis>
</Roslynator>
Edit: I have created an issue with a detailed description (#963) |
Beta Was this translation helpful? Give feedback.
Answered by
PeterKaszab
Oct 16, 2022
Replies: 1 comment
-
Fixed by #964 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
PeterKaszab
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixed by #964