Customize Severity or Disable some of roslyn warnings on sonar cloud?

I have a project that is being reported with hundreds of “Major” code smells because the DTOs do not have public XML comments…

how can I either change the severity of these, or optimally, disable this specific analysis?

Hi @Leonardo-Ferreira ,

You can configure Roslyn analyzers in your project using .editorconfig files: Configure code analysis rules - .NET | Microsoft Docs

You can also disable importing external Roslyn issues in your SonarCloud project settings under General Settings / External Analyzers / C# section / Ignore issues from external Roslyn analyzers.

1 Like