Skip to content

Commit

Permalink
Allow use of inferred variable type (var) in all projects except Core
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisDyallo committed Aug 14, 2024
1 parent 299b6ae commit ae0a608
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ dotnet_style_readonly_field = true:warning
#### C# Coding Conventions ####

# var preferences
csharp_style_var_elsewhere = false:warning
csharp_style_var_for_built_in_types = false:warning
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:warning
csharp_style_var_for_built_in_types = false:suggestion
csharp_style_var_when_type_is_apparent = true:warning

# Pattern matching preferences
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
Expand Down Expand Up @@ -351,3 +351,10 @@ dotnet_diagnostic.ca1707.severity = none

# CA1014: Mark assemblies with CLSCompliant
dotnet_diagnostic.ca1014.severity = none


[Yubico.Core/src/**/*.cs]
# var preferences
csharp_style_var_elsewhere = false:warning
csharp_style_var_for_built_in_types = false:warning
csharp_style_var_when_type_is_apparent = true:warning

0 comments on commit ae0a608

Please sign in to comment.