Skip to content

Commit 941d6ef

Browse files
committed
Updating editorconfig so disgards are automatic from 'dotnet format'
1 parent c067977 commit 941d6ef

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# New config, for command-line and ASP.NET apps, and UI combined
22
# This keeps open-braces on same line for code blocks
3-
# 15 Jan 2026
3+
# 30 Jan 2026
44

55
# Remove the line below if you want to inherit .editorconfig settings from higher directories
66
root = true
@@ -152,7 +152,7 @@ csharp_style_implicit_object_creation_when_type_is_apparent = true:suggestion
152152
csharp_style_prefer_tuple_swap = true:suggestion
153153
csharp_style_prefer_utf8_string_literals = true:suggestion
154154
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
155-
csharp_style_unused_value_expression_statement_preference = discard_variable:suggestion
155+
csharp_style_unused_value_expression_statement_preference = discard_variable:warning
156156
csharp_prefer_static_local_function = true:suggestion
157157
csharp_style_prefer_readonly_struct = true:suggestion
158158
csharp_style_prefer_readonly_struct_member = true:suggestion

Demo/.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# New config, for command-line and ASP.NET apps, and UI combined
22
# This keeps open-braces on same line for code blocks
3-
# 15 Jan 2026
3+
# 30 Jan 2026
44

55
# Remove the line below if you want to inherit .editorconfig settings from higher directories
66
root = true
@@ -152,7 +152,7 @@ csharp_style_implicit_object_creation_when_type_is_apparent = true:suggestion
152152
csharp_style_prefer_tuple_swap = true:suggestion
153153
csharp_style_prefer_utf8_string_literals = true:suggestion
154154
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
155-
csharp_style_unused_value_expression_statement_preference = discard_variable:suggestion
155+
csharp_style_unused_value_expression_statement_preference = discard_variable:warning
156156
csharp_prefer_static_local_function = true:suggestion
157157
csharp_style_prefer_readonly_struct = true:suggestion
158158
csharp_style_prefer_readonly_struct_member = true:suggestion

Tests/.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# New config, for command-line and ASP.NET apps, and UI combined
22
# This keeps open-braces on same line for code blocks
3-
# 15 Jan 2026
3+
# 30 Jan 2026
44

55
# Remove the line below if you want to inherit .editorconfig settings from higher directories
66
root = true
@@ -152,7 +152,7 @@ csharp_style_implicit_object_creation_when_type_is_apparent = true:suggestion
152152
csharp_style_prefer_tuple_swap = true:suggestion
153153
csharp_style_prefer_utf8_string_literals = true:suggestion
154154
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
155-
csharp_style_unused_value_expression_statement_preference = discard_variable:suggestion
155+
csharp_style_unused_value_expression_statement_preference = discard_variable:warning
156156
csharp_prefer_static_local_function = true:suggestion
157157
csharp_style_prefer_readonly_struct = true:suggestion
158158
csharp_style_prefer_readonly_struct_member = true:suggestion

0 commit comments

Comments
 (0)