Why does few analyzer rules have their effective severity set to suppressed in .NET4.6

191 views Asked by At

After adding code quality NuGet packages, I can see that by default, the effective severity level for some rules is set to suppress. But their default severity level remains warnings.

Severity set as suppress not as warning

How can I set the severity for all the rules as a warning?

I tried using AllEnabledByDefault in .csproj file. But it is not working.

Any help?

1

There are 1 answers

0
shilpa mathew On

Enabling Analyzer Warnings

It looks to me like there is no way to enable all the default disabled analyzer warnings. All we can do is to enable the needed warnings using :

dotnet_diagnostic..severity =