Skip to content

Commit 5a82aa4

Browse files
authored
Fix .editorconfig template test
1 parent eafa953 commit 5a82aa4

File tree

1 file changed

+16
-4
lines changed
  • test/dotnet-new.Tests/Approvals/AllCommonItemsCreate.-o#EditorConfig-file#-n#item.verified/EditorConfig-file

1 file changed

+16
-4
lines changed

test/dotnet-new.Tests/Approvals/AllCommonItemsCreate.-o#EditorConfig-file#-n#item.verified/EditorConfig-file/.editorconfig

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,16 @@ dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
5252
dotnet_style_coalesce_expression = true:suggestion
5353
dotnet_style_collection_initializer = true:suggestion
5454
dotnet_style_explicit_tuple_names = true:suggestion
55+
dotnet_style_namespace_match_folder = true:suggestion
5556
dotnet_style_null_propagation = true:suggestion
5657
dotnet_style_object_initializer = true:suggestion
5758
dotnet_style_operator_placement_when_wrapping = beginning_of_line
5859
dotnet_style_prefer_auto_properties = true:suggestion
60+
dotnet_style_prefer_collection_expression = when_types_loosely_match:suggestion
5961
dotnet_style_prefer_compound_assignment = true:suggestion
6062
dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion
6163
dotnet_style_prefer_conditional_expression_over_return = true:suggestion
64+
dotnet_style_prefer_foreach_explicit_cast_in_source = when_strongly_typed:suggestion
6265
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
6366
dotnet_style_prefer_inferred_tuple_names = true:suggestion
6467
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
@@ -77,9 +80,6 @@ dotnet_remove_unnecessary_suppression_exclusions = none
7780
#### C# Coding Conventions ####
7881
[*.cs]
7982

80-
# namespace style
81-
csharp_style_namespace_declarations=file_scoped:suggestion
82-
8383
# var preferences
8484
csharp_style_var_elsewhere = false:silent
8585
csharp_style_var_for_built_in_types = false:silent
@@ -98,6 +98,7 @@ csharp_style_expression_bodied_properties = true:silent
9898
# Pattern matching preferences
9999
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
100100
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
101+
csharp_style_prefer_extended_property_pattern = true:suggestion
101102
csharp_style_prefer_not_pattern = true:suggestion
102103
csharp_style_prefer_pattern_matching = true:silent
103104
csharp_style_prefer_switch_expression = true:suggestion
@@ -106,20 +107,31 @@ csharp_style_prefer_switch_expression = true:suggestion
106107
csharp_style_conditional_delegate_call = true:suggestion
107108

108109
# Modifier preferences
110+
csharp_prefer_static_anonymous_function = true:suggestion
109111
csharp_prefer_static_local_function = true:warning
110112
csharp_preferred_modifier_order = public,private,protected,internal,file,const,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,required,volatile,async:suggestion
113+
csharp_style_prefer_readonly_struct = true:suggestion
114+
csharp_style_prefer_readonly_struct_member = true:suggestion
111115

112116
# Code-block preferences
113117
csharp_prefer_braces = true:silent
114118
csharp_prefer_simple_using_statement = true:suggestion
119+
csharp_style_namespace_declarations = file_scoped:suggestion
120+
csharp_style_prefer_method_group_conversion = true:silent
121+
csharp_style_prefer_primary_constructors = true:suggestion
122+
csharp_style_prefer_top_level_statements = true:silent
115123

116124
# Expression-level preferences
117125
csharp_prefer_simple_default_expression = true:suggestion
118126
csharp_style_deconstructed_variable_declaration = true:suggestion
127+
csharp_style_implicit_object_creation_when_type_is_apparent = true:suggestion
119128
csharp_style_inlined_variable_declaration = true:suggestion
120-
csharp_style_pattern_local_over_anonymous_function = true:suggestion
121129
csharp_style_prefer_index_operator = true:suggestion
130+
csharp_style_prefer_local_over_anonymous_function = true:suggestion
131+
csharp_style_prefer_null_check_over_type_check = true:suggestion
122132
csharp_style_prefer_range_operator = true:suggestion
133+
csharp_style_prefer_tuple_swap = true:suggestion
134+
csharp_style_prefer_utf8_string_literals = true:suggestion
123135
csharp_style_throw_expression = true:suggestion
124136
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
125137
csharp_style_unused_value_expression_statement_preference = discard_variable:silent

0 commit comments

Comments
 (0)