chore: update editor config/fix analyzer suggestions

This commit is contained in:
Stevan Freeborn
2025-06-10 23:54:43 -05:00
parent a9d0dfdc76
commit d50989833e
2 changed files with 14 additions and 10 deletions
+8 -4
View File
@@ -24,6 +24,10 @@ insert_final_newline = false
#### .NET Coding Conventions ####
[*.{cs,vb}]
# diagnostics
dotnet_diagnostic.IDE0058.severity = none
dotnet_diagnostic.CA1707.severity = none
# Organize usings
dotnet_separate_import_directive_groups = true
dotnet_sort_system_directives_first = true
@@ -81,9 +85,9 @@ dotnet_remove_unnecessary_suppression_exclusions = none
csharp_style_namespace_declarations = file_scoped:suggestion
# var preferences
csharp_style_var_elsewhere = false:silent
csharp_style_var_for_built_in_types = false:silent
csharp_style_var_when_type_is_apparent = false:silent
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
# Expression-bodied members
csharp_style_expression_bodied_accessors = true:silent
@@ -121,7 +125,7 @@ csharp_style_pattern_local_over_anonymous_function = true:suggestion
csharp_style_prefer_index_operator = true:suggestion
csharp_style_prefer_range_operator = true:suggestion
csharp_style_throw_expression = true:suggestion
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
csharp_style_unused_value_assignment_preference = discard_variable:silent
csharp_style_unused_value_expression_statement_preference = discard_variable:silent
# 'using' directive preferences