Repository navigation
Replies: 1 comment
|
I think this is a Roslynator reporting-path limitation rather than a missing switch.
If your v0.12.0 build follows that same path, this looks like a CLI limitation/bug. The diagnostic log should say whether |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi all,
I am using Roslynator with a Unity project.
In my analyzers folder, I have Microsoft.Unity.Analyzers
Everything is working just fine, but I have plenty of warnings like this:
CS0649 Field is never assigned to, and will always have its default valueThis is quite typical in Unity, because you have classes like this:
To prevent this warning from triggering, Microsoft.Unity.Analyzers implements
a suppressor (USP0007):
https://github.com/microsoft/Microsoft.Unity.Analyzers/blob/main/doc/USP0007.md
I would expect not to see these warnings in the results
My question is: does
roslynator analyzesupport DiagnosticSuppressors?Maybe I have to enable them somehow?
This is how I am calling the tool (Roslynator.DotNet.Cli 0.12.0):
roslynator analyze "solution.sln" -a "analyzers_folder/" --output "results.xml" --file-log "roslynator.log" --file-log-verbosity diag
I also tried with
--report-suppressed-diagnostics, with the same result.Of course I know I can suppress the warning with
dotnet_diagnostic.CS0649.severity = nonebut I would rather not suppress it for the whole project, since that would suppress true positives as well.
Thank you
More info:
Roslynator Command Line Tool version 0.12.0.0 (Roslyn version 4.14.0.0)
All reactions