Skip to content

Commit 85060ce

Browse files
committed
added .editorconfig
1 parent 9981cf9 commit 85060ce

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.editorconfig

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ indent_size = 2
1111
# C# files
1212
[*.cs]
1313

14-
# Default severity for analyzer diagnostics with category 'Style'
15-
# dotnet_analyzer_diagnostic.category-Style.severity = suggestion
16-
dotnet_analyzer_diagnostic.category-Style.severity = warning
17-
1814
#### Core EditorConfig Options ####
1915

2016
# Indentation and spacing
@@ -62,7 +58,7 @@ dotnet_style_operator_placement_when_wrapping = beginning_of_line
6258
dotnet_style_prefer_auto_properties = true:suggestion
6359
dotnet_style_prefer_compound_assignment = true:suggestion
6460
dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion
65-
dotnet_style_prefer_conditional_expression_over_return = false:suggestion
61+
dotnet_style_prefer_conditional_expression_over_return = true:suggestion
6662
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
6763
dotnet_style_prefer_inferred_tuple_names = true:suggestion
6864
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
@@ -82,9 +78,9 @@ dotnet_remove_unnecessary_suppression_exclusions = none
8278
[*.cs]
8379

8480
# var preferences
85-
csharp_style_var_elsewhere = true:silent
86-
csharp_style_var_for_built_in_types = true:silent
87-
csharp_style_var_when_type_is_apparent = true:suggestion
81+
csharp_style_var_elsewhere = false:silent
82+
csharp_style_var_for_built_in_types = false:silent
83+
csharp_style_var_when_type_is_apparent = false:silent
8884

8985
# Expression-bodied members
9086
csharp_style_expression_bodied_accessors = true:silent
@@ -174,8 +170,6 @@ csharp_space_between_square_brackets = false
174170
# Wrapping preferences
175171
csharp_preserve_single_line_blocks = true
176172
csharp_preserve_single_line_statements = true
177-
csharp_style_namespace_declarations = file_scoped:silent
178-
csharp_style_prefer_method_group_conversion = true:silent
179173

180174
#### Naming styles ####
181175
[*.{cs,vb}]
@@ -367,3 +361,4 @@ dotnet_naming_style.s_camelcase.required_prefix = s_
367361
dotnet_naming_style.s_camelcase.required_suffix =
368362
dotnet_naming_style.s_camelcase.word_separator =
369363
dotnet_naming_style.s_camelcase.capitalization = camel_case
364+

0 commit comments

Comments
 (0)