Обновление стилистики

This commit is contained in:
2025-04-30 14:37:44 +04:00
parent 732988bd18
commit c6548349b9
2 changed files with 24 additions and 7 deletions
+23 -7
View File
@@ -1,5 +1,5 @@
# Удалите строку ниже, если вы хотите наследовать параметры .editorconfig из каталогов, расположенных выше в иерархии root = true
root = true # Удалите строку ниже, если вы хотите наследовать параметры .editorconfig из каталогов, расположенных выше в иерархии
# Файлы C# # Файлы C#
[*.cs] [*.cs]
@@ -34,8 +34,8 @@ dotnet_search_reference_assemblies = true
# Упорядочение Using # Упорядочение Using
dotnet_separate_import_directive_groups = false dotnet_separate_import_directive_groups = false
dotnet_sort_system_directives_first = false dotnet_sort_system_directives_first = true
file_header_template = unset file_header_template =
# Предпочтения для this. и Me. # Предпочтения для this. и Me.
dotnet_style_qualification_for_event = false dotnet_style_qualification_for_event = false
@@ -121,7 +121,7 @@ csharp_style_conditional_delegate_call = true
# Предпочтения модификатора # Предпочтения модификатора
csharp_prefer_static_anonymous_function = true csharp_prefer_static_anonymous_function = true
csharp_prefer_static_local_function = true csharp_prefer_static_local_function = true
csharp_preferred_modifier_order = public,private,protected,internal,file,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,required,volatile,async csharp_preferred_modifier_order = public, private, protected, readonly, file, static, extern, internal, virtual, abstract, override, sealed, new, unsafe, required, volatile, async:suggestion
csharp_style_prefer_readonly_struct = true csharp_style_prefer_readonly_struct = true
csharp_style_prefer_readonly_struct_member = true csharp_style_prefer_readonly_struct_member = true
@@ -180,7 +180,7 @@ csharp_indent_labels = one_less_than_current
csharp_indent_switch_labels = true csharp_indent_switch_labels = true
# Предпочтения для интервалов # Предпочтения для интервалов
csharp_space_after_cast = true csharp_space_after_cast = false
csharp_space_after_colon_in_inheritance_clause = true csharp_space_after_colon_in_inheritance_clause = true
csharp_space_after_comma = true csharp_space_after_comma = true
csharp_space_after_dot = false csharp_space_after_dot = false
@@ -249,6 +249,22 @@ dotnet_naming_style.begins_with_i.required_suffix =
dotnet_naming_style.begins_with_i.word_separator = dotnet_naming_style.begins_with_i.word_separator =
dotnet_naming_style.begins_with_i.capitalization = pascal_case dotnet_naming_style.begins_with_i.capitalization = pascal_case
# ReSharper properties
resharper_accessor_owner_body = accessors_with_expression_body
resharper_blank_lines_after_multiline_statements = 1
resharper_csharp_blank_lines_around_single_line_field = 1
resharper_csharp_wrap_after_invocation_lpar = true
resharper_csharp_wrap_arguments_style = chop_if_long
resharper_csharp_wrap_before_invocation_rpar = true
resharper_instance_members_qualify_declared_in =
resharper_local_function_body = expression_body
resharper_parentheses_redundancy_style = remove
resharper_place_expr_accessor_on_single_line = true
resharper_place_expr_method_on_single_line = true
resharper_place_expr_property_on_single_line = true
resharper_trailing_comma_in_multiline_lists = true
resharper_use_heuristics_for_body_style = true
[*.{cs,vb}] [*.{cs,vb}]
dotnet_style_coalesce_expression = true:suggestion dotnet_style_coalesce_expression = true:suggestion
dotnet_style_null_propagation = true:suggestion dotnet_style_null_propagation = true:suggestion
@@ -270,4 +286,4 @@ dotnet_code_quality_unused_parameters = all:suggestion
dotnet_style_operator_placement_when_wrapping = beginning_of_line dotnet_style_operator_placement_when_wrapping = beginning_of_line
tab_width = 4 tab_width = 4
indent_size = 4 indent_size = 4
dotnet_diagnostic.CA1822.severity = none dotnet_diagnostic.ca1822.severity = none
+1
View File
@@ -11,6 +11,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Элементы решения", "Элементы решения", "{754FC069-D67B-A9D7-50A1-8D1CA196D8F1}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Элементы решения", "Элементы решения", "{754FC069-D67B-A9D7-50A1-8D1CA196D8F1}"
ProjectSection(SolutionItems) = preProject ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig .editorconfig = .editorconfig
.config\dotnet-tools.json = .config\dotnet-tools.json
README.md = README.md README.md = README.md
EndProjectSection EndProjectSection
EndProject EndProject