1- # editorconfig.org
2-
3- # top-most EditorConfig file
41root = true
52
6- # Default settings:
7- # A newline ending every file
8- # Use 4 spaces as indentation
93[* ]
104insert_final_newline = true
115end_of_line = lf
126indent_style = space
137indent_size = 4
14-
15- # Trim trailing whitespace, limited support.
16- # https://github.com/editorconfig/editorconfig/wiki/Property-research:-Trim-trailing-spaces
178trim_trailing_whitespace = true
189
10+ csharp_indent_braces = false
11+ csharp_indent_case_contents = true
12+ csharp_indent_labels = one_less_than_current
13+ csharp_prefer_braces = true :warning
14+ csharp_prefer_simple_default_expression = true :suggestion
15+ csharp_prefer_simple_using_statement = true :suggestion
16+ csharp_prefer_static_local_function = true :suggestion
17+ csharp_space_around_binary_operators = before_and_after
18+ csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true :silent
19+ csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true :silent
20+ csharp_style_allow_embedded_statements_on_same_line_experimental = true :silent
21+ csharp_style_conditional_delegate_call = true :suggestion
22+ csharp_style_deconstructed_variable_declaration = true :suggestion
23+ csharp_style_expression_bodied_accessors = true :silent
24+ csharp_style_expression_bodied_constructors = true :silent
25+ csharp_style_expression_bodied_indexers = true :silent
26+ csharp_style_expression_bodied_lambdas = true :silent
27+ csharp_style_expression_bodied_local_functions = false :silent
28+ csharp_style_expression_bodied_methods = true :silent
29+ csharp_style_expression_bodied_operators = true :silent
30+ csharp_style_expression_bodied_properties = true :silent
31+ csharp_style_implicit_object_creation_when_type_is_apparent = true :suggestion
32+ csharp_style_inlined_variable_declaration = true :suggestion
33+ csharp_style_namespace_declarations = block_scoped:silent
34+ csharp_style_pattern_matching_over_as_with_null_check = true :suggestion
35+ csharp_style_pattern_matching_over_is_with_cast_check = true :suggestion
36+ csharp_style_prefer_extended_property_pattern = true :suggestion
37+ csharp_style_prefer_index_operator = true :suggestion
38+ csharp_style_prefer_local_over_anonymous_function = true :suggestion
39+ csharp_style_prefer_not_pattern = true :suggestion
40+ csharp_style_prefer_null_check_over_type_check = true :suggestion
41+ csharp_style_prefer_pattern_matching = true :silent
42+ csharp_style_prefer_range_operator = true :suggestion
43+ csharp_style_prefer_switch_expression = true :suggestion
44+ csharp_style_prefer_tuple_swap = true :suggestion
45+ csharp_style_throw_expression = true :suggestion
46+ csharp_style_unused_value_assignment_preference = discard_variable:suggestion
47+ csharp_style_unused_value_expression_statement_preference = discard_variable:silent
48+ csharp_style_var_elsewhere = false :silent
49+ csharp_style_var_for_built_in_types = false :silent
50+ csharp_style_var_when_type_is_apparent = false :silent
51+ csharp_using_directive_placement = outside_namespace:silent
52+
1953[* .md ]
2054insert_final_newline = false
2155trim_trailing_whitespace = false
@@ -24,14 +58,70 @@ trim_trailing_whitespace = false
2458indent_size = 2
2559
2660[* .{cs,vb} ]
27- dotnet_style_predefined_type_for_locals_parameters_members = true : error
61+ tab_width = 4
2862
29- dotnet_naming_rule.private_members_with_underscore.symbols = private_fields
30- dotnet_naming_rule.private_members_with_underscore.style = prefix_underscore
63+ dotnet_code_quality_unused_parameters = all:suggestion
3164dotnet_naming_rule.private_members_with_underscore.severity = suggestion
32-
33- dotnet_naming_symbols.private_fields.applicable_kinds = field
34- dotnet_naming_symbols.private_fields.applicable_accessibilities = private
35-
65+ dotnet_naming_rule.private_members_with_underscore.style = prefix_underscore
66+ dotnet_naming_rule.private_members_with_underscore.symbols = private_fields
3667dotnet_naming_style.prefix_underscore.capitalization = camel_case
3768dotnet_naming_style.prefix_underscore.required_prefix = _
69+ dotnet_naming_symbols.private_fields.applicable_accessibilities = private
70+ dotnet_naming_symbols.private_fields.applicable_kinds = field
71+ dotnet_style_allow_multiple_blank_lines_experimental = true :silent
72+ dotnet_style_allow_statement_immediately_after_block_experimental = true :silent
73+ dotnet_style_coalesce_expression = true :suggestion
74+ dotnet_style_collection_initializer = true :suggestion
75+ dotnet_style_explicit_tuple_names = true :suggestion
76+ dotnet_style_namespace_match_folder = true :suggestion
77+ dotnet_style_null_propagation = true :suggestion
78+ dotnet_style_object_initializer = true :suggestion
79+ dotnet_style_operator_placement_when_wrapping = beginning_of_line
80+ dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
81+ dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
82+ dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
83+ dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
84+ dotnet_style_predefined_type_for_locals_parameters_members = true :error
85+ dotnet_style_predefined_type_for_member_access = true :silent
86+ dotnet_style_prefer_auto_properties = true :silent
87+ dotnet_style_prefer_compound_assignment = true :suggestion
88+ dotnet_style_prefer_conditional_expression_over_assignment = true :silent
89+ dotnet_style_prefer_conditional_expression_over_return = true :silent
90+ dotnet_style_prefer_inferred_anonymous_type_member_names = true :suggestion
91+ dotnet_style_prefer_inferred_tuple_names = true :suggestion
92+ dotnet_style_prefer_is_null_check_over_reference_equality_method = true :suggestion
93+ dotnet_style_prefer_simplified_boolean_expressions = true :suggestion
94+ dotnet_style_prefer_simplified_interpolation = true :suggestion
95+ dotnet_style_qualification_for_event = false :silent
96+ dotnet_style_qualification_for_field = false :silent
97+ dotnet_style_qualification_for_method = false :silent
98+ dotnet_style_qualification_for_property = false :silent
99+ dotnet_style_readonly_field = true :suggestion
100+ dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
101+
102+ # CA1054: URI parameters should not be strings
103+ dotnet_diagnostic.CA1054.severity = suggestion
104+
105+ # CA1055: URI-like return values should not be strings
106+ dotnet_diagnostic.CA1055.severity = none
107+
108+ # RS0048: Missing shipped or unshipped public API file
109+ dotnet_public_api_analyzer.require_api_files = true
110+
111+ # SA1101: Prefix local calls with this
112+ dotnet_diagnostic.SA1101.severity = none
113+
114+ # SA1309: Field names should not begin with underscore
115+ dotnet_diagnostic.SA1309.severity = none
116+
117+ # SA1413: Use trailing comma in multi-line initializers
118+ dotnet_diagnostic.SA1413.severity = none
119+
120+ # SA1502: Element should not be on a single line
121+ dotnet_diagnostic.SA1502.severity = none
122+
123+ # SA1625: Element documentation should not be copied and pasted
124+ dotnet_diagnostic.SA1625.severity = none
125+
126+ # SA1633: File should have header
127+ dotnet_diagnostic.SA1633.severity = none
0 commit comments