Skip to content

Commit 5eb6bb6

Browse files
authored
Fix formatting conventions. (#4999)
1 parent 37111f2 commit 5eb6bb6

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

.editorconfig

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -82,30 +82,30 @@ csharp_prefer_braces = false:warning
8282
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:error
8383

8484
# ---
85-
# formatting conventions https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference#formatting-conventions
85+
# formatting conventions https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-formatting-conventions
8686

8787
# Newline settings (Allman yo!)
88-
csharp_new_line_before_open_brace = all:error
89-
csharp_new_line_before_else = true:error
90-
csharp_new_line_before_catch = true:error
91-
csharp_new_line_before_finally = true:error
88+
csharp_new_line_before_open_brace = all
89+
csharp_new_line_before_else = true
90+
csharp_new_line_before_catch = true
91+
csharp_new_line_before_finally = true
9292
csharp_new_line_before_members_in_object_initializers = true
9393
# just a suggestion do to our JSON tests that use anonymous types to
9494
# represent json quite a bit (makes copy paste easier).
95-
csharp_new_line_before_members_in_anonymous_types = true:suggestion
96-
csharp_new_line_between_query_expression_clauses = true:error
95+
csharp_new_line_before_members_in_anonymous_types = true
96+
csharp_new_line_between_query_expression_clauses = true
9797

9898
# Indent
99-
csharp_indent_case_contents = true:error
100-
csharp_indent_switch_labels = true:error
101-
csharp_space_after_cast = false:error
102-
csharp_space_after_keywords_in_control_flow_statements = true:error
103-
csharp_space_between_method_declaration_parameter_list_parentheses = false:error
104-
csharp_space_between_method_call_parameter_list_parentheses = false:error
99+
csharp_indent_case_contents = true
100+
csharp_indent_switch_labels = true
101+
csharp_space_after_cast = false
102+
csharp_space_after_keywords_in_control_flow_statements = true
103+
csharp_space_between_method_declaration_parameter_list_parentheses = false
104+
csharp_space_between_method_call_parameter_list_parentheses = false
105105

106106
#Wrap
107-
csharp_preserve_single_line_statements = false:error
108-
csharp_preserve_single_line_blocks = true:error
107+
csharp_preserve_single_line_statements = false
108+
csharp_preserve_single_line_blocks = true
109109

110110
# Resharper
111111
resharper_csharp_braces_for_lock=required_for_complex
@@ -118,6 +118,4 @@ resharper_csharp_braces_for_ifelse=required_for_complex
118118

119119
resharper_csharp_accessor_owner_body=expression_body
120120

121-
122121
resharper_redundant_case_label_highlighting=do_not_show
123-

0 commit comments

Comments
 (0)