How to set severity for whole package? #1108
Replies: 1 comment 1 reply
-
Short answerRead https://github.com/JosefPihrt/Roslynator/blob/main/docs/Configuration.md Long answerThe problem is that option If you use VS or VS Code extension you can use default configuration file to enable all analyzers. But you will still need to configure it because many formatting analyzers require additional option to be set (as described in https://github.com/JosefPihrt/Roslynator/blob/main/docs/Configuration.md#default-configuration My general recommendation would be to copy content of https://github.com/JosefPihrt/Roslynator/blob/main/docs/Configuration.md#full-list-of-options to your |
Beta Was this translation helpful? Give feedback.
-
Setting
dotnet_analyzer_diagnostic.category-roslynator.severity = <severity>
does not set the severity for the package Roslynator.Formatting.Analyzers. I don't know if it sets the severity for package Roslynator.CodeAnalysis.Analyzers. The 52 formatting rules are all disabled by default, so if I want to use them, I have to explicitly configure a lot. Issue #866 mentions the following settings, but they do not work either, or at least not for the formatting rules:Is there a shorthand to set the severity for all rules from Roslynator.Formatting.Analyzers and Roslynator.CodeAnalysis.Analyzers, respectively?
Beta Was this translation helpful? Give feedback.
All reactions