# https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference
# https://editorconfig.org

# top-most EditorConfig file
root = true

# Default settings:
# A newline ending every file
# Use 4 spaces as indentation
[*]
# insert_final_newline = false
indent_style = space
indent_size = 4

# C# files
[*.cs]
indent_style = tab

# SYSLIB1045: RegexGenerator limitation reached.
dotnet_diagnostic.SYSLIB1045.severity = silent
# Use COALESCE expression
dotnet_diagnostic.IDE0270.severity = silent

csharp_style_namespace_declarations = file_scoped:error

resharper_explicit_caller_info_argument_highlighting = none # 去除CallerMemberName警告

resharper_separate_local_functions_with_jump_statement_highlighting = none # 去除本地函数的警告
resharper_switch_statement_missing_some_enum_cases_no_default_highlighting = none # Some values of the enum are not processed inside 'switch' statement

resharper_redundant_type_declaration_body_highlighting = none # 去除类型声明体的警告

resharper_convert_to_primary_constructor_highlighting = none # 去除构造函数的警告

[*.xaml.cs]
resharper_redundant_extends_list_entry_highlighting = none # 去除xaml.cs文件的基类型重复警告。基类型不能删除，否则编译报错。

[*.{cs,vb}]
# Organize usings
#按字母顺序对 System.* using 指令排序，并将它们放在其他 using 指令前面
dotnet_sort_system_directives_first = true