123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- # EditorConfig: https://editorconfig.org/
- # Format details: https://editorconfig.org/#file-format-details
- # This file is the top-most EditorConfig file
- root = true
- # All files
- [*]
- charset = utf-8
- end_of_line = lf
- indent_style = tab
- insert_final_newline = true
- trim_trailing_whitespace = true
- ##########################################
- # File Extension Settings
- ##########################################
- # Make files
- [Makefile]
- indent_style = tab
- #Markdown
- [*.mk]
- indent_style = tab
- # Visual Studio Solution Files
- [*.sln]
- indent_style = tab
- # Code files
- [*.{cs,html,js,css}]
- insert_final_newline = true
- indent_style = tab
- ##########################################
- # .NET Language Conventions
- # https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference#language-conventions
- ##########################################
- # .NET Code Style Settings
- [*.{cs,csx,cake,vb}]
- # "this." and "Me." qualifiers
- # https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-language-conventions?view=vs-2019#this-and-me
- dotnet_style_qualification_for_field = false:none
- dotnet_style_qualification_for_property = false:none
- dotnet_style_qualification_for_method = false:none
- dotnet_style_qualification_for_event = false:none
- # Language keywords instead of framework type names for type references
- # https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-language-conventions?view=vs-2019#language-keywords
- dotnet_style_predefined_type_for_locals_parameters_members = true:warning
- dotnet_style_predefined_type_for_member_access = true:warning
- # Modifier preferences
- # https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-language-conventions?view=vs-2019#normalize-modifiers
- dotnet_style_require_accessibility_modifiers = never:suggestion
- csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async
- dotnet_style_readonly_field = false:none
- # Parentheses preferences
- # https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-language-conventions?view=vs-2019#parentheses-preferences
- dotnet_style_parentheses_in_arithmetic_binary_operators = never_if_unnecessary:suggestion
- dotnet_style_parentheses_in_relational_binary_operators = never_if_unnecessary:suggestion
- dotnet_style_parentheses_in_other_binary_operators = never_if_unnecessary:suggestion
- dotnet_style_parentheses_in_other_operators = never_if_unnecessary:suggestion
- # Expression-level preferences
- # https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-language-conventions?view=vs-2019#expression-level-preferences
- dotnet_style_object_initializer = false:none
- dotnet_style_collection_initializer = false:none
- dotnet_style_explicit_tuple_names = true:warning
- dotnet_style_prefer_inferred_tuple_names = false:none
- dotnet_style_prefer_inferred_anonymous_type_member_names = false:none
- dotnet_style_prefer_auto_properties = false:none
- dotnet_style_prefer_is_null_check_over_reference_equality_method = true:warning
- dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion
- dotnet_style_prefer_conditional_expression_over_return = true:suggestion
- # Null-checking preferences
- # https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-language-conventions?view=vs-2019#null-checking-preferences
- dotnet_style_coalesce_expression = true:warning
- dotnet_style_null_propagation = true:warning
- # C# Code Style Settings
- [*.{cs,csx,cake}]
- # Implicit and explicit types
- # https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-language-conventions?view=vs-2019#implicit-and-explicit-types
- csharp_style_var_for_built_in_types = true:warning
- csharp_style_var_when_type_is_apparent = true:warning
- csharp_style_var_elsewhere = true:warning
- # Expression-bodied members
- # https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-language-conventions?view=vs-2019#expression-bodied-members
- csharp_style_expression_bodied_methods = true:suggestion
- csharp_style_expression_bodied_constructors = true:suggestion
- csharp_style_expression_bodied_operators = true:suggestion
- csharp_style_expression_bodied_properties = true:suggestion
- csharp_style_expression_bodied_indexers = true:suggestion
- csharp_style_expression_bodied_accessors = true:suggestion
- # Pattern matching
- # https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-language-conventions?view=vs-2019#pattern-matching
- csharp_style_pattern_matching_over_is_with_cast_check = false:suggestion
- csharp_style_pattern_matching_over_as_with_null_check = false:suggestion
- # Inlined variable declarations
- # https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-language-conventions?view=vs-2019#inlined-variable-declarations
- csharp_style_inlined_variable_declaration = true:suggestion
- # Expression-level preferences
- # https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-language-conventions?view=vs-2019#expression-level-preferences-1
- csharp_prefer_simple_default_expression = false:suggestion
- csharp_style_deconstructed_variable_declaration = false:suggestion
- csharp_style_pattern_local_over_anonymous_function = false:suggestion
- # "Null" checking preferences
- # https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-language-conventions?view=vs-2019#null-checking-preferences-1
- csharp_style_throw_expression = true:suggestion
- csharp_style_conditional_delegate_call = true:suggestion
- # Code block preferences
- # https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-language-conventions?view=vs-2019#code-block-preferences
- csharp_prefer_braces = false:suggestion
- ##########################################
- # .NET Formatting Conventions
- # https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-formatting-conventions?view=vs-2019
- [*.{cs}]
- # Organizing Imports
- # https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-formatting-conventions?view=vs-2019#organize-using-directives
- dotnet_sort_system_directives_first = true
- dotnet_separate_import_directive_groups = true
|