Version Used:
Visual Studio 16.7.7
https://github.com/dotnet/roslyn/pull/38886
Steps to Reproduce:
dotnet_analyzer_diagnostic.severity = warningExpected Behavior:
All warnings from any installed analyzers should be generated for each rule violation covered by the bulk configuration.
Actual Behavior:
Only StyleCop warnings (with SA prefix) generated for each rule violation.
@anreton Can you please paste your entire editorconfig? Do you have the [*.cs] section header for the bulk configuration entry?
Also can you please confirm whether you see this behavior on command line build, build inside VS or for intellisense diagnostics while typing (or a combination of these)?
@mavasani, thank you for your quick response. Please look at the repository (master branch) - https://github.com/anreton/Anreton.RabbitMq
I set manually the warning severity for all analyzer rules in an .editorconfig file (current state in master branch). And I have 1220 warnings and 1 suggestions from all analyzers (Roslynator - RCS prefix, StyleCop - SA prefix, SolarLint - S prefix, FxCopAnalyzers - CA prefix) in Visual Studio (Error List window).
Then I replace the manual configuration of the analyzers (clear section #### Analyzers Rules #### in an .editorconfig file) with bulk configure analyzer diagnostics:
dotnet_analyzer_diagnostic.severity = warning
And I have 415 warnings and 0 suggestions. And only from StyleCop analyzer (with SA prefix) and few from FxCopAnalyzers (with CA prefix).
And I have the [*.cs] section header. And I see this behavior on build inside VS (in Build Output window the situation is the same).
Hmm, could this behavior depend on the fact that Enabled by default is false? (using a separate analyzer RCS1198 as an example)

After adding bulk configure analyzer diagnostics
dotnet_analyzer_diagnostic.severity = warning

Oh, my fault, my inattention ... (((

https://docs.microsoft.com/en-us/visualstudio/code-quality/use-roslyn-analyzers?view=vs-2019#set-rule-severity-of-multiple-analyzer-rules-at-once-in-an-editorconfig-file
Thanks @anreton - what you possible want is the feature request mentioned in https://github.com/dotnet/roslyn/issues/47046#issuecomment-678474546?
@mavasani, definitely, I think feature request from comment https://github.com/dotnet/roslyn/issues/47046#issuecomment-678474546 sounds reasonable and useful.
We can see that there are scenarios where setting a value to dotnet_analyzer_diagnostic.severity simply doesn't help. Accordingly, if there is an option _to allow specifying a new configuration entry kind to explicitly apply to disabled by default analyzers_, the above scenarios will also be covered.
The only question is the complexity of the implementation and the impact on the rest of the parts.
@mavasani, I think we can close this issue and mark it as a duplicate of https://github.com/dotnet/roslyn/issues/47046.
Thank you very much.