加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.editorconfig 19.09 KB
一键复制 编辑 原始数据 按行查看 历史
SunnieShine 提交于 2021-03-27 18:54 . Add Cells.Parse and Cells.TryParse.
# C# and XAML files
[*.{cs,xaml}]
#### Core EditorConfig Options ####
# Indentation and spacing
indent_size = 4
indent_style = tab
tab_width = 4
# New line preferences
end_of_line = crlf
insert_final_newline = false
#### .NET Coding Conventions ####
# Organize usings
dotnet_separate_import_directive_groups = false
dotnet_sort_system_directives_first = true
# this. and Me. preferences
dotnet_style_qualification_for_event = false:suggestion
dotnet_style_qualification_for_field = false:suggestion
dotnet_style_qualification_for_method = false:suggestion
dotnet_style_qualification_for_property = false:suggestion
# Language keywords vs BCL types preferences
dotnet_style_predefined_type_for_locals_parameters_members = true:silent
dotnet_style_predefined_type_for_member_access = true:silent
# Parentheses preferences
dotnet_style_parentheses_in_arithmetic_binary_operators = never_if_unnecessary:silent
dotnet_style_parentheses_in_other_binary_operators = never_if_unnecessary:silent
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
dotnet_style_parentheses_in_relational_binary_operators = never_if_unnecessary:silent
# Modifier preferences
dotnet_style_require_accessibility_modifiers = for_non_interface_members:none
# Expression-level preferences
dotnet_style_coalesce_expression = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_explicit_tuple_names = true:suggestion
dotnet_style_null_propagation = true:suggestion
dotnet_style_object_initializer = true:suggestion
dotnet_style_prefer_auto_properties = true:suggestion
dotnet_style_prefer_compound_assignment = true:suggestion
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
dotnet_style_prefer_conditional_expression_over_return = true:silent
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
dotnet_style_prefer_inferred_tuple_names = true:suggestion
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
# Field preferences
dotnet_style_readonly_field = true:suggestion
# Parameter preferences
dotnet_code_quality_unused_parameters = all:suggestion
#### C# Coding Conventions ####
# var preferences
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = false:silent
csharp_style_var_when_type_is_apparent = true:suggestion
# Expression-bodied members
csharp_style_expression_bodied_accessors = when_on_single_line:silent
csharp_style_expression_bodied_constructors = when_on_single_line:silent
csharp_style_expression_bodied_indexers = when_on_single_line:silent
csharp_style_expression_bodied_lambdas = when_on_single_line:silent
csharp_style_expression_bodied_local_functions = when_on_single_line:silent
csharp_style_expression_bodied_methods = when_on_single_line:silent
csharp_style_expression_bodied_operators = when_on_single_line:silent
csharp_style_expression_bodied_properties = when_on_single_line:silent
# Pattern matching preferences
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
csharp_style_prefer_switch_expression = true:suggestion
# Null-checking preferences
csharp_style_conditional_delegate_call = true:suggestion
# Modifier preferences
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
# Code-block preferences
csharp_prefer_braces = false:suggestion
csharp_prefer_simple_using_statement = true:suggestion
# Expression-level preferences
csharp_prefer_simple_default_expression = true:suggestion
csharp_style_deconstructed_variable_declaration = true:suggestion
csharp_style_inlined_variable_declaration = true:suggestion
csharp_style_pattern_local_over_anonymous_function = true:suggestion
csharp_style_prefer_index_operator = true:suggestion
csharp_style_prefer_range_operator = true:suggestion
csharp_style_throw_expression = true:suggestion
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
csharp_style_unused_value_expression_statement_preference = discard_variable:silent
# 'using' directive preferences
csharp_using_directive_placement = outside_namespace:silent
#### C# Formatting Rules ####
# New line preferences
csharp_new_line_before_catch = true
csharp_new_line_before_else = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_open_brace = all
csharp_new_line_between_query_expression_clauses = true
# Indentation preferences
csharp_indent_block_contents = true
csharp_indent_braces = false
csharp_indent_case_contents = true
csharp_indent_case_contents_when_block = false
csharp_indent_labels = one_less_than_current
csharp_indent_switch_labels = true
# Space preferences
csharp_space_after_cast = false
csharp_space_after_colon_in_inheritance_clause = true
csharp_space_after_comma = true
csharp_space_after_dot = false
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_after_semicolon_in_for_statement = true
csharp_space_around_binary_operators = before_and_after
csharp_space_around_declaration_statements = false
csharp_space_before_colon_in_inheritance_clause = true
csharp_space_before_comma = false
csharp_space_before_dot = false
csharp_space_before_open_square_brackets = false
csharp_space_before_semicolon_in_for_statement = false
csharp_space_between_empty_square_brackets = false
csharp_space_between_method_call_empty_parameter_list_parentheses = false
csharp_space_between_method_call_name_and_opening_parenthesis = false
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
csharp_space_between_method_declaration_name_and_open_parenthesis = false
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_parentheses = false
csharp_space_between_square_brackets = false
# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true
#### Naming styles ####
# Naming rules
dotnet_naming_rule.interfaces_should_be_start_with__i_.severity = warning
dotnet_naming_rule.interfaces_should_be_start_with__i_.symbols = interfaces
dotnet_naming_rule.interfaces_should_be_start_with__i_.style = start_with__i_
dotnet_naming_rule.type_parameters_should_be_start_with__t_.severity = warning
dotnet_naming_rule.type_parameters_should_be_start_with__t_.symbols = type_parameters
dotnet_naming_rule.type_parameters_should_be_start_with__t_.style = start_with__t_
dotnet_naming_rule.types_should_be_pascalcase.severity = warning
dotnet_naming_rule.types_should_be_pascalcase.symbols = types
dotnet_naming_rule.types_should_be_pascalcase.style = pascalcase
dotnet_naming_rule.const_fields_should_be_pascalcase.severity = warning
dotnet_naming_rule.const_fields_should_be_pascalcase.symbols = const_fields
dotnet_naming_rule.const_fields_should_be_pascalcase.style = pascalcase
dotnet_naming_rule.static_readonly_fields_should_be_pascalcase.severity = warning
dotnet_naming_rule.static_readonly_fields_should_be_pascalcase.symbols = static_readonly_fields
dotnet_naming_rule.static_readonly_fields_should_be_pascalcase.style = pascalcase
dotnet_naming_rule.static_fields_should_be_pascalcase.severity = warning
dotnet_naming_rule.static_fields_should_be_pascalcase.symbols = static_fields
dotnet_naming_rule.static_fields_should_be_pascalcase.style = pascalcase
dotnet_naming_rule.non_field_members_should_be_pascalcase.severity = warning
dotnet_naming_rule.non_field_members_should_be_pascalcase.symbols = non_field_members
dotnet_naming_rule.non_field_members_should_be_pascalcase.style = pascalcase
dotnet_naming_rule.instance_fields_should_be_start_with_underline.severity = warning
dotnet_naming_rule.instance_fields_should_be_start_with_underline.symbols = instance_fields
dotnet_naming_rule.instance_fields_should_be_start_with_underline.style = start_with_underline
dotnet_naming_rule.async_methods_should_be_end_with__async_.severity = warning
dotnet_naming_rule.async_methods_should_be_end_with__async_.symbols = async_methods
dotnet_naming_rule.async_methods_should_be_end_with__async_.style = end_with__async_
dotnet_naming_rule.delegates_should_be_end_with__eventhandler_.severity = suggestion
dotnet_naming_rule.delegates_should_be_end_with__eventhandler_.symbols = delegates
dotnet_naming_rule.delegates_should_be_end_with__eventhandler_.style = end_with__eventhandler_
# Symbol specifications
dotnet_naming_symbols.interfaces.applicable_kinds = interface
dotnet_naming_symbols.interfaces.applicable_accessibilities = public, internal, private, protected, protected_internal
dotnet_naming_symbols.interfaces.required_modifiers =
dotnet_naming_symbols.delegates.applicable_kinds = delegate
dotnet_naming_symbols.delegates.applicable_accessibilities = public, internal, private, protected, protected_internal
dotnet_naming_symbols.delegates.required_modifiers =
dotnet_naming_symbols.static_fields.applicable_kinds = field
dotnet_naming_symbols.static_fields.applicable_accessibilities = public, internal, protected, protected_internal
dotnet_naming_symbols.static_fields.required_modifiers = static
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal
dotnet_naming_symbols.types.required_modifiers =
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal
dotnet_naming_symbols.non_field_members.required_modifiers =
dotnet_naming_symbols.instance_fields.applicable_kinds = field
dotnet_naming_symbols.instance_fields.applicable_accessibilities = private, private_protected, local
dotnet_naming_symbols.instance_fields.required_modifiers =
dotnet_naming_symbols.async_methods.applicable_kinds = method
dotnet_naming_symbols.async_methods.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.async_methods.required_modifiers = async
dotnet_naming_symbols.static_readonly_fields.applicable_kinds = field
dotnet_naming_symbols.static_readonly_fields.applicable_accessibilities = *
dotnet_naming_symbols.static_readonly_fields.required_modifiers = readonly, static
dotnet_naming_symbols.const_fields.applicable_kinds = field
dotnet_naming_symbols.const_fields.applicable_accessibilities = *
dotnet_naming_symbols.const_fields.required_modifiers = const
dotnet_naming_symbols.type_parameters.applicable_kinds = type_parameter
dotnet_naming_symbols.type_parameters.applicable_accessibilities =
dotnet_naming_symbols.type_parameters.required_modifiers =
# Naming styles
dotnet_naming_style.pascalcase.required_prefix =
dotnet_naming_style.pascalcase.required_suffix =
dotnet_naming_style.pascalcase.word_separator =
dotnet_naming_style.pascalcase.capitalization = pascal_case
dotnet_naming_style.start_with__i_.required_prefix = I
dotnet_naming_style.start_with__i_.required_suffix =
dotnet_naming_style.start_with__i_.word_separator =
dotnet_naming_style.start_with__i_.capitalization = pascal_case
dotnet_naming_style.end_with__eventhandler_.required_prefix =
dotnet_naming_style.end_with__eventhandler_.required_suffix = EventHandler
dotnet_naming_style.end_with__eventhandler_.word_separator =
dotnet_naming_style.end_with__eventhandler_.capitalization = pascal_case
dotnet_naming_style.start_with_underline.required_prefix = _
dotnet_naming_style.start_with_underline.required_suffix =
dotnet_naming_style.start_with_underline.word_separator =
dotnet_naming_style.start_with_underline.capitalization = camel_case
dotnet_naming_style.end_with__async_.required_prefix =
dotnet_naming_style.end_with__async_.required_suffix = Async
dotnet_naming_style.end_with__async_.word_separator =
dotnet_naming_style.end_with__async_.capitalization = pascal_case
dotnet_naming_style.start_with__t_.required_prefix = T
dotnet_naming_style.start_with__t_.required_suffix =
dotnet_naming_style.start_with__t_.word_separator =
dotnet_naming_style.start_with__t_.capitalization = pascal_case
# IDE0001: Simplify Names
dotnet_diagnostic.IDE0001.severity = suggestion
# IDE0002: Simplify Member Access
dotnet_diagnostic.IDE0002.severity = suggestion
# IDE0005: Using directive is unnecessary
dotnet_diagnostic.IDE0005.severity = suggestion
# IDE0010: Add missing cases
dotnet_diagnostic.IDE0010.severity = none
# IDE0058: Expression value is never used
csharp_style_unused_value_expression_statement_preference = discard_variable:none
# IDE0071: Simplify interpolation
dotnet_style_prefer_simplified_interpolation = false
# IDE0072: Add missing cases
dotnet_diagnostic.IDE0072.severity = none
# CS3001: Argument type is not CLS-compliant
dotnet_diagnostic.CS3001.severity = error
# CS3002: Return type is not CLS-compliant
dotnet_diagnostic.CS3002.severity = error
# CS3003: Type is not CLS-compliant
dotnet_diagnostic.CS3003.severity = error
# CS3005: Identifier differing only in case is not CLS-compliant
dotnet_diagnostic.CS3005.severity = error
# CS3006: Overloaded method differing only in ref or out, or in array rank, is not CLS-compliant
dotnet_diagnostic.CS3006.severity = error
# CS3008: Identifier is not CLS-compliant
dotnet_diagnostic.CS3008.severity = error
# CS3010: CLS-compliant interfaces must have only CLS-compliant members
dotnet_diagnostic.CS3010.severity = error
# CS3024: Constraint type is not CLS-compliant
dotnet_diagnostic.CS3024.severity = error
# CS8509: The switch expression does not handle all possible values of its input type (it is not exhaustive).
dotnet_diagnostic.CS8509.severity = silent
# CS8524: The switch expression does not handle some values of its input type (it is not exhaustive) involving an unnamed enum value.
dotnet_diagnostic.CS8524.severity = silent
# CS8600: Converting null literal or possible null value to non-nullable type.
dotnet_diagnostic.CS8600.severity = error
# CS8601: Possible null reference assignment.
dotnet_diagnostic.CS8601.severity = error
# CS8602: Dereference of a possibly null reference.
dotnet_diagnostic.CS8602.severity = error
# CS8603: Possible null reference return.
dotnet_diagnostic.CS8603.severity = error
# CS8604: Possible null reference argument.
dotnet_diagnostic.CS8604.severity = error
# CS8605: Unboxing a possibly null value.
dotnet_diagnostic.CS8605.severity = error
# CS8606: Possible null reference assignment to iteration variable
dotnet_diagnostic.CS8606.severity = error
# CS8607: A possible null value may not be used for a type marked with [NotNull] or [DisallowNull]
dotnet_diagnostic.CS8607.severity = error
# CS8610: Nullability of reference types in type of parameter doesn't match overridden member.
dotnet_diagnostic.CS8610.severity = error
# CS8611: Nullability of reference types in type of parameter doesn't match partial method declaration.
dotnet_diagnostic.CS8611.severity = error
# CS8613: Nullability of reference types in return type doesn't match implicitly implemented member.
dotnet_diagnostic.CS8613.severity = error
# CS8616: Nullability of reference types in return type doesn't match implemented member.
dotnet_diagnostic.CS8616.severity = error
# CS8618: Non-nullable field is uninitialized. Consider declaring as nullable.
dotnet_diagnostic.CS8618.severity = error
# CS8619: Nullability of reference types in value doesn't match target type.
dotnet_diagnostic.CS8619.severity = error
# CS8620: Argument cannot be used for parameter due to differences in the nullability of reference types.
dotnet_diagnostic.CS8620.severity = error
# CS8622: Nullability of reference types in type of parameter doesn't match the target delegate.
dotnet_diagnostic.CS8622.severity = error
# CS8625: Cannot convert null literal to non-nullable reference type.
dotnet_diagnostic.CS8625.severity = error
# CS8629: Nullable value type may be null.
dotnet_diagnostic.CS8629.severity = error
# CS8643: Nullability of reference types in explicit interface specifier doesn't match interface implemented by the type.
dotnet_diagnostic.CS8643.severity = error
# CS8653: A default expression introduces a null value for a type parameter.
dotnet_diagnostic.CS8653.severity = error
# CS8656: Call to non-readonly member from a 'readonly' member results in an implicit copy.
dotnet_diagnostic.CS8656.severity = error
# CS8714: The type cannot be used as type parameter in the generic type or method. Nullability of type argument doesn't match 'notnull' constraint.
dotnet_diagnostic.CS8714.severity = error
# CS8762: Parameter may not have a null value when exiting in some condition.
dotnet_diagnostic.CS8762.severity = error
# CS8763: A method marked [DoesNotReturn] should not return.
dotnet_diagnostic.CS8763.severity = error
# CS8765: Nullability of type of parameter doesn't match overridden member (possibly because of nullability attributes).
dotnet_diagnostic.CS8765.severity = error
# CS8766: Nullability of reference types in return type doesn't match implicitly implemented member (possibly because of nullability attributes).
dotnet_diagnostic.CS8766.severity = error
# CS8767: Nullability of reference types in type of parameter doesn't match implicitly implemented member (possibly because of nullability attributes).
dotnet_diagnostic.CS8767.severity = error
# CS8769: Nullability of reference types in type of parameter doesn't match implemented member (possibly because of nullability attributes).
dotnet_diagnostic.CS8769.severity = error
# CS8774: Member must have a non-null value when exiting.
dotnet_diagnostic.CS8774.severity = error
# CS8776: Member cannot be used in this attribute.
dotnet_diagnostic.CS8776.severity = error
# CS8777: Parameter must have a non-null value when exiting.
dotnet_diagnostic.CS8777.severity = error
# CS8846: The switch expression does not handle all possible values of its input type (it is not exhaustive).
dotnet_diagnostic.CS8846.severity = silent
# CS8907: Parameter is unread. Did you forget to use it to initialize the property with that name?
dotnet_diagnostic.CS8907.severity = error
# CA1027: Mark enums with FlagsAttribute
dotnet_diagnostic.CA1027.severity = none
# CA1031: Do not catch general exception types
dotnet_diagnostic.CA1031.severity = none
# CA1305: Specify IFormatProvider
dotnet_diagnostic.CA1305.severity = none
# CA1711: Identifiers should not have incorrect suffix
dotnet_diagnostic.CA1711.severity = none
# CA1810: Initialize reference type static fields inline
dotnet_diagnostic.CA1810.severity = none
# CA1819: Properties should not return arrays
dotnet_diagnostic.CA1819.severity = none
# CA1822: Mark members as static
dotnet_diagnostic.CA1822.severity = none
# CA2208: Instantiate argument exceptions correctly
dotnet_diagnostic.CA2208.severity = silent
# CA2244: Do not duplicate indexed element initializations
dotnet_diagnostic.CA2244.severity = error
# CA2249: Consider using 'string.Contains' instead of 'string.IndexOf'
dotnet_diagnostic.CA2249.severity = silent
# Other custom disabled cases.
# May be deleted later in the future.
dotnet_diagnostic.CS0618.severity = silent
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化