More editorconfig

This commit is contained in:
Mike Phares 2022-01-24 15:32:35 -07:00
parent 8dc9f7c15b
commit 568a04ea11

View File

@ -43,33 +43,33 @@ dotnet_style_require_accessibility_modifiers = for_non_interface_members
# Expression-level preferences # Expression-level preferences
dotnet_style_coalesce_expression = true dotnet_style_coalesce_expression = true
dotnet_style_collection_initializer = true dotnet_style_collection_initializer = true:warning
dotnet_style_explicit_tuple_names = true dotnet_style_explicit_tuple_names = true:warning
dotnet_style_namespace_match_folder = true dotnet_style_namespace_match_folder = true
dotnet_style_null_propagation = true dotnet_style_null_propagation = true:warning
dotnet_style_object_initializer = true dotnet_style_object_initializer = true:warning
dotnet_style_operator_placement_when_wrapping = beginning_of_line dotnet_style_operator_placement_when_wrapping = beginning_of_line
dotnet_style_prefer_auto_properties = true dotnet_style_prefer_auto_properties = true:warning
dotnet_style_prefer_compound_assignment = true dotnet_style_prefer_compound_assignment = true:warning
dotnet_style_prefer_conditional_expression_over_assignment = true dotnet_style_prefer_conditional_expression_over_assignment = true
dotnet_style_prefer_conditional_expression_over_return = true dotnet_style_prefer_conditional_expression_over_return = true
dotnet_style_prefer_inferred_anonymous_type_member_names = true dotnet_style_prefer_inferred_anonymous_type_member_names = true
dotnet_style_prefer_inferred_tuple_names = true dotnet_style_prefer_inferred_tuple_names = true
dotnet_style_prefer_is_null_check_over_reference_equality_method = true dotnet_style_prefer_is_null_check_over_reference_equality_method = true:warning
dotnet_style_prefer_simplified_boolean_expressions = true dotnet_style_prefer_simplified_boolean_expressions = true
dotnet_style_prefer_simplified_interpolation = true dotnet_style_prefer_simplified_interpolation = true
# Field preferences # Field preferences
dotnet_style_readonly_field = true dotnet_style_readonly_field = true:warning
# Parameter preferences # Parameter preferences
dotnet_code_quality_unused_parameters = all dotnet_code_quality_unused_parameters = all:warning
# Suppression preferences # Suppression preferences
dotnet_remove_unnecessary_suppression_exclusions = none dotnet_remove_unnecessary_suppression_exclusions = 0
# New line preferences # New line preferences
dotnet_style_allow_multiple_blank_lines_experimental = false dotnet_style_allow_multiple_blank_lines_experimental = false:warning
dotnet_style_allow_statement_immediately_after_block_experimental = true dotnet_style_allow_statement_immediately_after_block_experimental = true
#### C# Coding Conventions #### #### C# Coding Conventions ####
@ -91,42 +91,42 @@ csharp_style_expression_bodied_properties = true
# Pattern matching preferences # Pattern matching preferences
csharp_style_pattern_matching_over_as_with_null_check = true csharp_style_pattern_matching_over_as_with_null_check = true
csharp_style_pattern_matching_over_is_with_cast_check = true csharp_style_pattern_matching_over_is_with_cast_check = true:warning
csharp_style_prefer_not_pattern = true csharp_style_prefer_not_pattern = true:warning
csharp_style_prefer_pattern_matching = true csharp_style_prefer_pattern_matching = true:warning
csharp_style_prefer_switch_expression = true csharp_style_prefer_switch_expression = true:warning
# Null-checking preferences # Null-checking preferences
csharp_style_conditional_delegate_call = true csharp_style_conditional_delegate_call = true
# Modifier preferences # Modifier preferences
csharp_prefer_static_local_function = true csharp_prefer_static_local_function = true:warning
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async
# Code-block preferences # Code-block preferences
csharp_prefer_braces = true csharp_prefer_braces = false
csharp_prefer_simple_using_statement = true:silent csharp_prefer_simple_using_statement = true:warning
csharp_style_namespace_declarations = file_scoped csharp_style_namespace_declarations = file_scoped:warning
# Expression-level preferences # Expression-level preferences
csharp_prefer_simple_default_expression = true csharp_prefer_simple_default_expression = true
csharp_style_deconstructed_variable_declaration = false csharp_style_deconstructed_variable_declaration = false
csharp_style_implicit_object_creation_when_type_is_apparent = true csharp_style_implicit_object_creation_when_type_is_apparent = true:warning
csharp_style_inlined_variable_declaration = false csharp_style_inlined_variable_declaration = false
csharp_style_pattern_local_over_anonymous_function = true csharp_style_pattern_local_over_anonymous_function = true
csharp_style_prefer_index_operator = true csharp_style_prefer_index_operator = true:warning
csharp_style_prefer_null_check_over_type_check = true csharp_style_prefer_null_check_over_type_check = true
csharp_style_prefer_range_operator = true csharp_style_prefer_range_operator = true:warning
csharp_style_throw_expression = true csharp_style_throw_expression = true
csharp_style_unused_value_assignment_preference = discard_variable csharp_style_unused_value_assignment_preference = discard_variable:warning
csharp_style_unused_value_expression_statement_preference = discard_variable csharp_style_unused_value_expression_statement_preference = discard_variable:warning
# 'using' directive preferences # 'using' directive preferences
csharp_using_directive_placement = outside_namespace csharp_using_directive_placement = outside_namespace
# New line preferences # New line preferences
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = false csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true
csharp_style_allow_embedded_statements_on_same_line_experimental = true csharp_style_allow_embedded_statements_on_same_line_experimental = true
#### C# Formatting Rules #### #### C# Formatting Rules ####