|
1 |
| -# # To learn more about .editorconfig see https://aka.ms/editorconfigdocs |
2 |
| - |
3 |
| -# ############################### |
4 |
| -# # Core EditorConfig Options # |
5 |
| -# ############################### |
6 |
| - |
7 |
| -# # All files |
8 |
| -# [*] |
9 |
| -# indent_style = space |
10 |
| -# end_of_line = crlf |
11 |
| - |
12 |
| -# # Code files |
13 |
| -# [*.{cs,yaml,xaml,json,csproj}] |
14 |
| -# indent_size = 2 |
15 |
| -# insert_final_newline = true |
16 |
| -# charset = utf-8 |
17 |
| - |
18 |
| -# ############################### |
19 |
| -# # .NET Coding Conventions # |
20 |
| -# ############################### |
21 |
| - |
22 |
| -# [*.{cs}] |
23 |
| -# # Default Severity for all .NET Code Style rules below. |
24 |
| -# dotnet_analyzer_diagnostic.severity = warning |
25 |
| - |
26 |
| -# [*.{cs}] |
27 |
| -# # Organize usings. |
28 |
| -# dotnet_sort_system_directives_first = true |
29 |
| - |
30 |
| -# # this. preferences. |
31 |
| -# dotnet_style_qualification_for_field = false |
32 |
| -# dotnet_style_qualification_for_property = false |
33 |
| -# dotnet_style_qualification_for_method = false |
34 |
| -# dotnet_style_qualification_for_event = false |
35 |
| - |
36 |
| -# # Language keywords vs BCL types preferences. |
37 |
| -# dotnet_style_predefined_type_for_locals_parameters_members = true |
38 |
| -# dotnet_style_predefined_type_for_member_access = true |
39 |
| - |
40 |
| -# # Parentheses preferences. |
41 |
| -# dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity |
42 |
| -# dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity |
43 |
| -# dotnet_style_parentheses_in_other_binary_operators = always_for_clarity |
44 |
| -# dotnet_style_parentheses_in_other_operators = never_if_unnecessary |
45 |
| - |
46 |
| -# # Modifier preferences. |
47 |
| -# dotnet_style_require_accessibility_modifiers = for_non_interface_members |
48 |
| -# dotnet_style_readonly_field = true |
49 |
| - |
50 |
| -# # Expression-level preferences |
51 |
| -# dotnet_style_object_initializer = true |
52 |
| -# dotnet_style_collection_initializer = true |
53 |
| -# dotnet_style_explicit_tuple_names = true |
54 |
| -# dotnet_style_null_propagation = true |
55 |
| -# dotnet_style_coalesce_expression = true |
56 |
| -# dotnet_style_prefer_is_null_check_over_reference_equality_method = true |
57 |
| -# dotnet_style_prefer_inferred_tuple_names = true |
58 |
| -# dotnet_style_prefer_inferred_anonymous_type_member_names = true |
59 |
| -# dotnet_style_prefer_auto_properties = true |
60 |
| -# dotnet_style_prefer_conditional_expression_over_assignment = true |
61 |
| -# dotnet_style_prefer_conditional_expression_over_return = false |
62 |
| - |
63 |
| -# ############################### |
64 |
| -# # Naming Conventions # |
65 |
| -# ############################### |
66 |
| - |
67 |
| -# # Style Definitions. |
68 |
| -# dotnet_naming_style.pascal_case_style.capitalization = pascal_case |
69 |
| - |
70 |
| -# # Use PascalCase for constant fields |
71 |
| -# dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion |
72 |
| -# dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields |
73 |
| -# dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style |
74 |
| -# dotnet_naming_symbols.constant_fields.applicable_kinds = field |
75 |
| -# dotnet_naming_symbols.constant_fields.applicable_accessibilities = * |
76 |
| -# dotnet_naming_symbols.constant_fields.required_modifiers = const |
77 |
| - |
78 |
| -# ############################### |
79 |
| -# # C# Coding Conventions # |
80 |
| -# ############################### |
81 |
| - |
82 |
| -# [*.cs] |
83 |
| -# # var preferences. |
84 |
| -# csharp_style_var_for_built_in_types = true |
85 |
| -# csharp_style_var_when_type_is_apparent = true |
86 |
| -# csharp_style_var_elsewhere = true |
87 |
| - |
88 |
| -# # Expression-bodied members. |
89 |
| -# csharp_style_expression_bodied_methods = false |
90 |
| -# csharp_style_expression_bodied_constructors = false |
91 |
| -# csharp_style_expression_bodied_operators = false |
92 |
| -# csharp_style_expression_bodied_properties = true |
93 |
| -# csharp_style_expression_bodied_indexers = true |
94 |
| -# csharp_style_expression_bodied_accessors = true |
95 |
| - |
96 |
| -# # Pattern matching preferences. |
97 |
| -# csharp_style_pattern_matching_over_is_with_cast_check = true |
98 |
| -# csharp_style_pattern_matching_over_as_with_null_check = true |
99 |
| - |
100 |
| -# # Null-checking preferences. |
101 |
| -# csharp_style_throw_expression = true |
102 |
| -# csharp_style_conditional_delegate_call = true |
103 |
| - |
104 |
| -# # Modifier preferences. |
105 |
| -# csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async |
106 |
| - |
107 |
| -# # Expression-level preferences. |
108 |
| -# csharp_prefer_braces = true |
109 |
| -# csharp_style_deconstructed_variable_declaration = true |
110 |
| -# csharp_prefer_simple_default_expression = true |
111 |
| -# csharp_style_pattern_local_over_anonymous_function = true |
112 |
| -# csharp_style_inlined_variable_declaration = true |
113 |
| -# csharp_style_unused_value_expression_statement_preference = discard_variable:none |
114 |
| - |
115 |
| -# ############################### |
116 |
| -# # C# Formatting Rules # |
117 |
| -# ############################### |
118 |
| - |
119 |
| -# # New line preferences. |
120 |
| -# csharp_new_line_before_open_brace = all |
121 |
| -# csharp_new_line_before_else = true |
122 |
| -# csharp_new_line_before_catch = true |
123 |
| -# csharp_new_line_before_finally = true |
124 |
| -# csharp_new_line_before_members_in_object_initializers = true |
125 |
| -# csharp_new_line_before_members_in_anonymous_types = true |
126 |
| -# csharp_new_line_between_query_expression_clauses = true |
127 |
| - |
128 |
| -# # Indentation preferences. |
129 |
| -# csharp_indent_case_contents = true |
130 |
| -# csharp_indent_switch_labels = true |
131 |
| -# csharp_indent_labels = flush_left |
132 |
| - |
133 |
| -# # Space preferences. |
134 |
| -# csharp_space_after_cast = false |
135 |
| -# csharp_space_after_keywords_in_control_flow_statements = true |
136 |
| -# csharp_space_between_method_call_parameter_list_parentheses = false |
137 |
| -# csharp_space_between_method_declaration_parameter_list_parentheses = false |
138 |
| -# csharp_space_between_parentheses = false |
139 |
| -# csharp_space_before_colon_in_inheritance_clause = true |
140 |
| -# csharp_space_after_colon_in_inheritance_clause = true |
141 |
| -# csharp_space_around_binary_operators = before_and_after |
142 |
| -# csharp_space_between_method_declaration_empty_parameter_list_parentheses = false |
143 |
| -# csharp_space_between_method_call_name_and_opening_parenthesis = false |
144 |
| -# csharp_space_between_method_call_empty_parameter_list_parentheses = false |
145 |
| - |
146 |
| -# # Wrapping preferences. |
147 |
| -# csharp_preserve_single_line_statements = true |
148 |
| -# csharp_preserve_single_line_blocks = true |
149 |
| - |
150 |
| -# ############################### |
151 |
| -# # Analyzer Rules # |
152 |
| -# ############################### |
153 |
| - |
154 |
| -# # Suppress 'async void lambda' warning in JetBrains editors. |
155 |
| -# resharper_async_void_lambda_highlighting = hint |
156 |
| - |
157 |
| -# roslynator_refactorings.enabled = true |
158 |
| -# roslynator_compiler_diagnostic_fixes.enabled = true |
159 |
| - |
160 |
| -# # Disable rule "Add braces (when expression spans over multiple lines)". |
161 |
| -# dotnet_diagnostic.IDE0011.severity = none |
162 |
| -# dotnet_diagnostic.RCS1001.severity = none |
163 |
| -# dotnet_diagnostic.RCS1003.severity = none |
164 |
| - |
165 |
| -# # Disable rule "Populate switch". |
166 |
| -# dotnet_diagnostic.IDE0072.severity = none |
167 |
| - |
168 |
| -# # Disable rule "Use bit shift operator". |
169 |
| -# dotnet_diagnostic.RCS1237.severity = none |
170 |
| - |
171 |
| -# # Disable rule "Add 'param' element to documentation comment". |
172 |
| -# dotnet_diagnostic.RCS1141.severity = none |
173 |
| - |
174 |
| -# # Disable rule "Add 'typeparam' element to documentation comment". |
175 |
| -# dotnet_diagnostic.RCS1142.severity = none |
176 |
| - |
177 |
| -# # Disable rule "Use pattern matching to avoid 'as' followed by a 'null' check". |
178 |
| -# dotnet_diagnostic.IDE0019.severity = none |
179 |
| -# dotnet_diagnostic.RCS1221.severity = none |
180 |
| - |
181 |
| -# # Disable rule "Declare enum member with zero value (when enum has FlagsAttribute)" |
182 |
| -# dotnet_diagnostic.RCS1135.severity = none |
183 |
| - |
184 |
| -# # Disable rule "Avoid NullReferenceException". Undecided whether to enable, since it can reduce |
185 |
| -# # clarity when a variable is guaranteed to be defined. |
186 |
| -# dotnet_diagnostic.RCS1202.severity = none |
187 |
| - |
188 |
| -# # TODO: Temporarily disabled. |
189 |
| -# # Disable rule "P/Invoke methods should not be visible". |
190 |
| -# dotnet_diagnostic.CA1401.severity = none |
191 |
| - |
192 |
| -# # TODO: Temporarily disabled. |
193 |
| -# # Disable rule "Duplicate enum value". |
194 |
| -# dotnet_diagnostic.RCS1234.severity = none |
195 |
| -# dotnet_diagnostic.CA1069.severity = none |
196 |
| - |
197 |
| -# # TODO: Temporarily disabled. |
198 |
| -# # Disable rule "Enum should declare explicit values". |
199 |
| -# dotnet_diagnostic.RCS1161.severity = none |
200 |
| - |
201 |
| -# # Disable rule "Do not declare visible instance fields". |
202 |
| -# dotnet_diagnostic.CA1051.severity = none |
203 |
| - |
204 |
| -# # Disable rule "Exception type is not sufficiently specific". |
205 |
| -# dotnet_diagnostic.CA2201.severity = none |
206 |
| - |
207 |
| -# # Disable rule "Identifiers should not have incorrect suffix". |
208 |
| -# dotnet_diagnostic.CA1711.severity = none |
209 |
| - |
210 |
| -# # Disable rule "Identifiers should not match keywords". |
211 |
| -# dotnet_diagnostic.CA1716.severity = none |
212 |
| - |
213 |
| -# # Disable rule "Use the LoggerMessage delegates". |
214 |
| -# dotnet_diagnostic.CA1848.severity = none |
215 |
| - |
216 |
| -# # TODO: Temporarily disabled. |
217 |
| -# # Disable rule "Avoid 'StringBuilder' parameters for P/Invokes". |
218 |
| -# dotnet_diagnostic.CA1838.severity = none |
219 |
| - |
220 |
| -# # Add rule exception "Types that own disposable fields should be disposable". |
221 |
| -# [**/Bus.cs] |
222 |
| -# dotnet_diagnostic.CA1001.severity = none |
223 |
| - |
224 |
| -# [**/*.xaml.cs] |
225 |
| -# dotnet_diagnostic.RCS1043.severity = none |
| 1 | +# Editor configuration, see https://editorconfig.org |
| 2 | +root = true |
| 3 | + |
| 4 | +[*] |
| 5 | +charset = utf-8 |
| 6 | +indent_style = space |
| 7 | +indent_size = 2 |
| 8 | +insert_final_newline = true |
| 9 | +trim_trailing_whitespace = true |
| 10 | + |
| 11 | +[*.md] |
| 12 | +max_line_length = off |
0 commit comments