Open steve-haar opened 5 years ago
📝 Note that this feature request is directly opposed to #29657, where users request that var
not be allowed under this configuration.
I'm hitting the same issue trying to configure on of dotnet repos to match the .NET style guide point 10 - i.e., force explicit type everywhere unless the type is obvious.
To that extent I tried the following but I'm still getting warned for the obvious case (line:70):
dotnet_diagnostic.IDE0007.severity = silent
dotnet_diagnostic.IDE0008.severity = warning
csharp_style_var_elsewhere = false:warning
csharp_style_var_for_built_in_types = false:warning
csharp_style_var_when_type_is_apparent = true:none
Version Used: Visual Studio 2019 16.2.0 Preview 3.0 .net core 2.2
Steps to Reproduce:
See demo repo
Create a new c# project and set
.editorconfig
to the following:Add the following code:
Expected Behavior: There should be no IDE0008 errors.
Actual Behavior: There are IDE0008 errors.