semantic-kernel

Форк
0
/
.editorconfig 
666 строк · 33.8 Кб
1
# To learn more about .editorconfig see https://aka.ms/editorconfigdocs
2
###############################
3
# Core EditorConfig Options   #
4
###############################
5
root = true
6
# All files
7
[*]
8
indent_style = space
9
end_of_line = lf
10

11
# XML project files
12
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
13
indent_size = 2
14

15
# XML config files
16
[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}]
17
indent_size = 2
18

19
# YAML config files
20
[*.{yml,yaml}]
21
tab_width = 2
22
indent_size = 2
23
insert_final_newline = true
24
trim_trailing_whitespace = true
25

26
# JSON config files
27
[*.json]
28
tab_width = 2
29
indent_size = 2
30
insert_final_newline = false
31
trim_trailing_whitespace = true
32

33
# Typescript files
34
[*.{ts,tsx}]
35
insert_final_newline = true
36
trim_trailing_whitespace = true
37
tab_width = 4
38
indent_size = 4
39
file_header_template = Copyright (c) Microsoft. All rights reserved.
40

41
# Stylesheet files
42
[*.{css,scss,sass,less}]
43
insert_final_newline = true
44
trim_trailing_whitespace = true
45
tab_width = 4
46
indent_size = 4
47

48
# Code files
49
[*.{cs,csx,vb,vbx}]
50
tab_width = 4
51
indent_size = 4
52
insert_final_newline = true
53
trim_trailing_whitespace = true
54
charset = utf-8-bom
55
file_header_template = Copyright (c) Microsoft. All rights reserved.
56

57
###############################
58
# .NET Coding Conventions     #
59
###############################
60
[*.{cs,vb}]
61
# Organize usings
62
dotnet_sort_system_directives_first = true
63
# this. preferences
64
dotnet_style_qualification_for_field = true:error
65
dotnet_style_qualification_for_property = true:error
66
dotnet_style_qualification_for_method = true:error
67
dotnet_style_qualification_for_event = true:error
68
# Language keywords vs BCL types preferences
69
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
70
dotnet_style_predefined_type_for_member_access = true:suggestion
71
# Parentheses preferences
72
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:suggestion
73
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:suggestion
74
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
75
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
76
# Modifier preferences
77
dotnet_style_require_accessibility_modifiers = for_non_interface_members:error
78
dotnet_style_readonly_field = true:warning
79
# Expression-level preferences
80
dotnet_style_object_initializer = true:suggestion
81
dotnet_style_collection_initializer = true:suggestion
82
dotnet_style_explicit_tuple_names = true:suggestion
83
dotnet_style_null_propagation = true:suggestion
84
dotnet_style_coalesce_expression = true:suggestion
85
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
86
dotnet_style_prefer_inferred_tuple_names = true:suggestion
87
dotnet_style_prefer_inferred_anonymous_type_member_names = true:silent
88
dotnet_style_prefer_auto_properties = true:suggestion
89
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
90
dotnet_style_prefer_conditional_expression_over_return = true:silent
91
dotnet_style_prefer_simplified_interpolation = true:suggestion
92
dotnet_style_operator_placement_when_wrapping = beginning_of_line
93
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
94
dotnet_style_prefer_compound_assignment = true:suggestion
95
# Code quality rules
96
dotnet_code_quality_unused_parameters = all:suggestion
97

98
[*.cs]
99
# Note: these settings cause "dotnet format" to fix the code. You should review each change if you uses "dotnet format".
100
dotnet_diagnostic.RCS1036.severity = warning # Remove unnecessary blank line.
101
dotnet_diagnostic.RCS1037.severity = warning # Remove trailing white-space.
102
dotnet_diagnostic.RCS1097.severity = warning # Remove redundant 'ToString' call.
103
dotnet_diagnostic.RCS1138.severity = warning # Add summary to documentation comment.
104
dotnet_diagnostic.RCS1139.severity = warning # Add summary element to documentation comment.
105
dotnet_diagnostic.RCS1168.severity = warning # Parameter name 'foo' differs from base name 'bar'.
106
dotnet_diagnostic.RCS1175.severity = warning # Unused 'this' parameter 'operation'.
107
dotnet_diagnostic.RCS1192.severity = warning # Unnecessary usage of verbatim string literal.
108
dotnet_diagnostic.RCS1194.severity = warning # Implement exception constructors.
109
dotnet_diagnostic.RCS1211.severity = warning # Remove unnecessary else clause.
110
dotnet_diagnostic.RCS1214.severity = warning # Unnecessary interpolated string.
111
dotnet_diagnostic.RCS1225.severity = warning # Make class sealed.
112
dotnet_diagnostic.RCS1232.severity = warning # Order elements in documentation comment.
113

114
# Commented out because `dotnet format` change can be disruptive.
115
# dotnet_diagnostic.RCS1085.severity = warning # Use auto-implemented property.
116

117
# Commented out because `dotnet format` removes the xmldoc element, while we should add the missing documentation instead.
118
# dotnet_diagnostic.RCS1228.severity = warning # Unused element in documentation comment.
119

120
# Diagnostics elevated as warnings
121
dotnet_diagnostic.CA1000.severity = warning # Do not declare static members on generic types
122
dotnet_diagnostic.CA1031.severity = warning # Do not catch general exception types
123
dotnet_diagnostic.CA1050.severity = warning # Declare types in namespaces
124
dotnet_diagnostic.CA1063.severity = warning # Implement IDisposable correctly
125
dotnet_diagnostic.CA1064.severity = warning # Exceptions should be public
126
dotnet_diagnostic.CA1416.severity = warning # Validate platform compatibility
127
dotnet_diagnostic.CA1508.severity = warning # Avoid dead conditional code
128
dotnet_diagnostic.CA1852.severity = warning # Sealed classes
129
dotnet_diagnostic.CA1859.severity = warning # Use concrete types when possible for improved performance
130
dotnet_diagnostic.CA1860.severity = warning # Prefer comparing 'Count' to 0 rather than using 'Any()', both for clarity and for performance
131
dotnet_diagnostic.CA2000.severity = warning # Call System.IDisposable.Dispose on object before all references to it are out of scope
132
dotnet_diagnostic.CA2201.severity = warning # Exception type System.Exception is not sufficiently specific
133

134
dotnet_diagnostic.IDE0001.severity = warning # Simplify name
135
dotnet_diagnostic.IDE0005.severity = warning # Remove unnecessary using directives
136
dotnet_diagnostic.IDE0009.severity = warning # Add this or Me qualification
137
dotnet_diagnostic.IDE0011.severity = warning # Add braces
138
dotnet_diagnostic.IDE0018.severity = warning # Inline variable declaration
139
dotnet_diagnostic.IDE0032.severity = warning # Use auto-implemented property
140
dotnet_diagnostic.IDE0034.severity = warning # Simplify 'default' expression
141
dotnet_diagnostic.IDE0035.severity = warning # Remove unreachable code
142
dotnet_diagnostic.IDE0040.severity = warning # Add accessibility modifiers
143
dotnet_diagnostic.IDE0049.severity = warning # Use language keywords instead of framework type names for type references
144
dotnet_diagnostic.IDE0050.severity = warning # Convert anonymous type to tuple
145
dotnet_diagnostic.IDE0051.severity = warning # Remove unused private member
146
dotnet_diagnostic.IDE0055.severity = warning # Formatting rule
147
dotnet_diagnostic.IDE0060.severity = warning # Remove unused parameter
148
dotnet_diagnostic.IDE0070.severity = warning # Use 'System.HashCode.Combine'
149
dotnet_diagnostic.IDE0071.severity = warning # Simplify interpolation
150
dotnet_diagnostic.IDE0073.severity = warning # Require file header
151
dotnet_diagnostic.IDE0082.severity = warning # Convert typeof to nameof
152
dotnet_diagnostic.IDE0090.severity = warning # Simplify new expression
153
dotnet_diagnostic.IDE0161.severity = warning # Use file-scoped namespace
154

155
# Suppressed diagnostics
156
dotnet_diagnostic.CA1002.severity = none # Change 'List<string>' in '...' to use 'Collection<T>' ...
157
dotnet_diagnostic.CA1032.severity = none # We're using RCS1194 which seems to cover more ctors
158
dotnet_diagnostic.CA1034.severity = none # Do not nest type. Alternatively, change its accessibility so that it is not externally visible
159
dotnet_diagnostic.CA1062.severity = none # Disable null check, C# already does it for us
160
dotnet_diagnostic.CA1303.severity = none # Do not pass literals as localized parameters
161
dotnet_diagnostic.CA1305.severity = none # Operation could vary based on current user's locale settings
162
dotnet_diagnostic.CA1307.severity = none # Operation has an overload that takes a StringComparison
163
dotnet_diagnostic.CA1508.severity = none # Avoid dead conditional code. Too many false positives.
164
dotnet_diagnostic.CA1510.severity = none # ArgumentNullException.Throw
165
dotnet_diagnostic.CA1512.severity = none # ArgumentOutOfRangeException.Throw
166
dotnet_diagnostic.CA1515.severity = none # Making public types from exes internal
167
dotnet_diagnostic.CA1805.severity = none # Member is explicitly initialized to its default value
168
dotnet_diagnostic.CA1822.severity = none # Member does not access instance data and can be marked as static
169
dotnet_diagnostic.CA1848.severity = none # For improved performance, use the LoggerMessage delegates
170
dotnet_diagnostic.CA1849.severity = none # Use async equivalent; analyzer is currently noisy
171
dotnet_diagnostic.CA1865.severity = none # StartsWith(char)
172
dotnet_diagnostic.CA1867.severity = none # EndsWith(char)
173
dotnet_diagnostic.CA2007.severity = none # Do not directly await a Task
174
dotnet_diagnostic.CA2225.severity = none # Operator overloads have named alternates
175
dotnet_diagnostic.CA2227.severity = none # Change to be read-only by removing the property setter
176
dotnet_diagnostic.CA2253.severity = none # Named placeholders in the logging message template should not be comprised of only numeric characters
177
dotnet_diagnostic.CA2253.severity = none # Named placeholders in the logging message template should not be comprised of only numeric characters
178
dotnet_diagnostic.CA2263.severity = suggestion # Use generic overload
179

180
dotnet_diagnostic.VSTHRD103.severity = none # Use async equivalent; analyzer is currently noisy
181
dotnet_diagnostic.VSTHRD111.severity = none # Use .ConfigureAwait(bool) is hidden by default, set to none to prevent IDE from changing on autosave
182
dotnet_diagnostic.VSTHRD200.severity = none # Use Async suffix for async methods
183
dotnet_diagnostic.xUnit1004.severity = none # Test methods should not be skipped. Remove the Skip property to start running the test again.
184

185
dotnet_diagnostic.RCS1021.severity = none # Use expression-bodied lambda.
186
dotnet_diagnostic.RCS1032.severity = none # Remove redundant parentheses.
187
dotnet_diagnostic.RCS1061.severity = none # Merge 'if' with nested 'if'.
188
dotnet_diagnostic.RCS1069.severity = none # Remove unnecessary case label.
189
dotnet_diagnostic.RCS1074.severity = none # Remove redundant constructor.
190
dotnet_diagnostic.RCS1077.severity = none # Optimize LINQ method call.
191
dotnet_diagnostic.RCS1118.severity = none # Mark local variable as const.
192
dotnet_diagnostic.RCS1124.severity = none # Inline local variable.
193
dotnet_diagnostic.RCS1129.severity = none # Remove redundant field initialization.
194
dotnet_diagnostic.RCS1140.severity = none # Add exception to documentation comment.
195
dotnet_diagnostic.RCS1141.severity = none # Add 'param' element to documentation comment.
196
dotnet_diagnostic.RCS1142.severity = none # Add 'typeparam' element to documentation comment.
197
dotnet_diagnostic.RCS1146.severity = none # Use conditional access.
198
dotnet_diagnostic.RCS1151.severity = none # Remove redundant cast.
199
dotnet_diagnostic.RCS1158.severity = none # Static member in generic type should use a type parameter.
200
dotnet_diagnostic.RCS1161.severity = none # Enum should declare explicit value
201
dotnet_diagnostic.RCS1163.severity = none # Unused parameter 'foo'.
202
dotnet_diagnostic.RCS1170.severity = none # Use read-only auto-implemented property.
203
dotnet_diagnostic.RCS1173.severity = none # Use coalesce expression instead of 'if'.
204
dotnet_diagnostic.RCS1181.severity = none # Convert comment to documentation comment.
205
dotnet_diagnostic.RCS1186.severity = none # Use Regex instance instead of static method.
206
dotnet_diagnostic.RCS1188.severity = none # Remove redundant auto-property initialization.
207
dotnet_diagnostic.RCS1189.severity = none # Add region name to #endregion.
208
dotnet_diagnostic.RCS1197.severity = none # Optimize StringBuilder.AppendLine call.
209
dotnet_diagnostic.RCS1201.severity = none # Use method chaining.
210
dotnet_diagnostic.RCS1205.severity = none # Order named arguments according to the order of parameters.
211
dotnet_diagnostic.RCS1212.severity = none # Remove redundant assignment.
212
dotnet_diagnostic.RCS1217.severity = none # Convert interpolated string to concatenation.
213
dotnet_diagnostic.RCS1222.severity = none # Merge preprocessor directives.
214
dotnet_diagnostic.RCS1226.severity = none # Add paragraph to documentation comment.
215
dotnet_diagnostic.RCS1229.severity = none # Use async/await when necessary.
216
dotnet_diagnostic.RCS1234.severity = none # Enum duplicate value
217
dotnet_diagnostic.RCS1238.severity = none # Avoid nested ?: operators.
218
dotnet_diagnostic.RCS1241.severity = none # Implement IComparable when implementing IComparable<T><T>.
219

220
dotnet_diagnostic.IDE0001.severity = none # Simplify name
221
dotnet_diagnostic.IDE0002.severity = none # Simplify member access
222
dotnet_diagnostic.IDE0004.severity = none # Remove unnecessary cast
223
dotnet_diagnostic.IDE0035.severity = none # Remove unreachable code
224
dotnet_diagnostic.IDE0051.severity = none # Remove unused private member
225
dotnet_diagnostic.IDE0052.severity = none # Remove unread private member
226
dotnet_diagnostic.IDE0058.severity = none # Remove unused expression value
227
dotnet_diagnostic.IDE0059.severity = none # Unnecessary assignment of a value
228
dotnet_diagnostic.IDE0060.severity = none # Remove unused parameter
229
dotnet_diagnostic.IDE0079.severity = none # Remove unnecessary suppression.
230
dotnet_diagnostic.IDE0080.severity = none # Remove unnecessary suppression operator.
231
dotnet_diagnostic.IDE0100.severity = none # Remove unnecessary equality operator
232
dotnet_diagnostic.IDE0110.severity = none # Remove unnecessary discards
233
dotnet_diagnostic.IDE0130.severity = none # Namespace does not match folder structure
234
dotnet_diagnostic.IDE0032.severity = none # Use auto property
235
dotnet_diagnostic.IDE0160.severity = none # Use block-scoped namespace
236
dotnet_diagnostic.IDE1006.severity = warning # Naming rule violations
237

238
###############################
239
# Naming Conventions          #
240
###############################
241

242
# Styles
243

244
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
245

246
dotnet_naming_style.camel_case_style.capitalization = camel_case
247

248
dotnet_naming_style.static_underscored.capitalization = camel_case
249
dotnet_naming_style.static_underscored.required_prefix = s_
250

251
dotnet_naming_style.underscored.capitalization = camel_case
252
dotnet_naming_style.underscored.required_prefix = _
253

254
dotnet_naming_style.uppercase_with_underscore_separator.capitalization = all_upper
255
dotnet_naming_style.uppercase_with_underscore_separator.word_separator = _
256

257
dotnet_naming_style.end_in_async.required_prefix =
258
dotnet_naming_style.end_in_async.required_suffix = Async
259
dotnet_naming_style.end_in_async.capitalization = pascal_case
260
dotnet_naming_style.end_in_async.word_separator =
261

262
# Symbols
263

264
dotnet_naming_symbols.constant_fields.applicable_kinds = field
265
dotnet_naming_symbols.constant_fields.applicable_accessibilities  = *
266
dotnet_naming_symbols.constant_fields.required_modifiers = const
267

268
dotnet_naming_symbols.local_constant.applicable_kinds = local
269
dotnet_naming_symbols.local_constant.applicable_accessibilities  = *
270
dotnet_naming_symbols.local_constant.required_modifiers = const
271

272
dotnet_naming_symbols.private_static_fields.applicable_kinds = field
273
dotnet_naming_symbols.private_static_fields.applicable_accessibilities = private
274
dotnet_naming_symbols.private_static_fields.required_modifiers = static
275

276
dotnet_naming_symbols.private_fields.applicable_kinds = field
277
dotnet_naming_symbols.private_fields.applicable_accessibilities = private
278

279
dotnet_naming_symbols.any_async_methods.applicable_kinds = method
280
dotnet_naming_symbols.any_async_methods.applicable_accessibilities = *
281
dotnet_naming_symbols.any_async_methods.required_modifiers = async
282

283
# Rules
284

285
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
286
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
287
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = error
288

289
dotnet_naming_rule.local_constant_should_be_pascal_case.symbols = local_constant
290
dotnet_naming_rule.local_constant_should_be_pascal_case.style = pascal_case_style
291
dotnet_naming_rule.local_constant_should_be_pascal_case.severity = error
292

293
dotnet_naming_rule.private_static_fields_underscored.symbols = private_static_fields
294
dotnet_naming_rule.private_static_fields_underscored.style = static_underscored
295
dotnet_naming_rule.private_static_fields_underscored.severity = error
296

297
dotnet_naming_rule.private_fields_underscored.symbols = private_fields
298
dotnet_naming_rule.private_fields_underscored.style = underscored
299
dotnet_naming_rule.private_fields_underscored.severity = error
300

301
dotnet_naming_rule.async_methods_end_in_async.symbols = any_async_methods
302
dotnet_naming_rule.async_methods_end_in_async.style = end_in_async
303
dotnet_naming_rule.async_methods_end_in_async.severity = error
304

305
###############################
306
# C# Coding Conventions       #
307
###############################
308

309
# var preferences
310
csharp_style_var_for_built_in_types = false:none
311
csharp_style_var_when_type_is_apparent = false:none
312
csharp_style_var_elsewhere = false:none
313
# Expression-bodied members
314
csharp_style_expression_bodied_methods = false:silent
315
csharp_style_expression_bodied_constructors = false:silent
316
csharp_style_expression_bodied_operators = false:silent
317
csharp_style_expression_bodied_properties = true:silent
318
csharp_style_expression_bodied_indexers = true:silent
319
csharp_style_expression_bodied_accessors = true:silent
320
# Pattern matching preferences
321
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
322
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
323
# Null-checking preferences
324
csharp_style_throw_expression = true:suggestion
325
csharp_style_conditional_delegate_call = true:suggestion
326
# Modifier preferences
327
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion
328
# Expression-level preferences
329
csharp_prefer_braces = true:error
330
csharp_style_deconstructed_variable_declaration = true:suggestion
331
csharp_prefer_simple_default_expression = true:suggestion
332
csharp_style_prefer_local_over_anonymous_function = true:error
333
csharp_style_inlined_variable_declaration = true:suggestion
334

335
###############################
336
# C# Formatting Rules         #
337
###############################
338

339
# New line preferences
340
csharp_new_line_before_open_brace = all
341
csharp_new_line_before_else = true
342
csharp_new_line_before_catch = true
343
csharp_new_line_before_finally = true
344
csharp_new_line_before_members_in_object_initializers = false # Does not work with resharper, forcing code to be on long lines instead of wrapping
345
csharp_new_line_before_members_in_anonymous_types = true
346
csharp_new_line_between_query_expression_clauses = true
347
# Indentation preferences
348
csharp_indent_braces = false
349
csharp_indent_case_contents = true
350
csharp_indent_case_contents_when_block = false
351
csharp_indent_switch_labels = true
352
csharp_indent_labels = flush_left
353
# Space preferences
354
csharp_space_after_cast = false
355
csharp_space_after_keywords_in_control_flow_statements = true
356
csharp_space_between_method_call_parameter_list_parentheses = false
357
csharp_space_between_method_declaration_parameter_list_parentheses = false
358
csharp_space_between_parentheses = false
359
csharp_space_before_colon_in_inheritance_clause = true
360
csharp_space_after_colon_in_inheritance_clause = true
361
csharp_space_around_binary_operators = before_and_after
362
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
363
csharp_space_between_method_call_name_and_opening_parenthesis = false
364
csharp_space_between_method_call_empty_parameter_list_parentheses = false
365
# Wrapping preferences
366
csharp_preserve_single_line_statements = true
367
csharp_preserve_single_line_blocks = true
368
csharp_using_directive_placement = outside_namespace:warning
369
csharp_prefer_simple_using_statement = true:suggestion
370
csharp_style_namespace_declarations = file_scoped:warning
371
csharp_style_prefer_method_group_conversion = true:silent
372
csharp_style_prefer_top_level_statements = true:silent
373
csharp_style_expression_bodied_lambdas = true:silent
374
csharp_style_expression_bodied_local_functions = false:silent
375

376
###############################
377
# Resharper Rules             #
378
###############################
379

380
# Resharper disabled rules: https://www.jetbrains.com/help/resharper/Reference__Code_Inspections_CSHARP.html#CodeSmell
381
resharper_redundant_linebreak_highlighting = none # Disable Resharper's "Redundant line break" highlighting
382
resharper_missing_linebreak_highlighting = none # Disable Resharper's "Missing line break" highlighting
383
resharper_bad_empty_braces_line_breaks_highlighting = none # Disable Resharper's "Bad empty braces line breaks" highlighting
384
resharper_missing_indent_highlighting = none # Disable Resharper's "Missing indent" highlighting
385
resharper_missing_blank_lines_highlighting = none # Disable Resharper's "Missing blank lines" highlighting
386
resharper_wrong_indent_size_highlighting = none # Disable Resharper's "Wrong indent size" highlighting
387
resharper_bad_indent_highlighting = none # Disable Resharper's "Bad indent" highlighting
388
resharper_bad_expression_braces_line_breaks_highlighting = none # Disable Resharper's "Bad expression braces line breaks" highlighting
389
resharper_multiple_spaces_highlighting = none # Disable Resharper's "Multiple spaces" highlighting
390
resharper_bad_expression_braces_indent_highlighting = none # Disable Resharper's "Bad expression braces indent" highlighting
391
resharper_bad_control_braces_indent_highlighting = none # Disable Resharper's "Bad control braces indent" highlighting
392
resharper_bad_preprocessor_indent_highlighting = none # Disable Resharper's "Bad preprocessor indent" highlighting
393
resharper_redundant_blank_lines_highlighting = none # Disable Resharper's "Redundant blank lines" highlighting
394
resharper_multiple_statements_on_one_line_highlighting = none # Disable Resharper's "Multiple statements on one line" highlighting
395
resharper_bad_braces_spaces_highlighting = none # Disable Resharper's "Bad braces spaces" highlighting
396
resharper_outdent_is_off_prev_level_highlighting = none # Disable Resharper's "Outdent is off previous level" highlighting
397
resharper_bad_symbol_spaces_highlighting = none # Disable Resharper's "Bad symbol spaces" highlighting
398
resharper_bad_colon_spaces_highlighting = none # Disable Resharper's "Bad colon spaces" highlighting
399
resharper_bad_semicolon_spaces_highlighting = none # Disable Resharper's "Bad semicolon spaces" highlighting
400
resharper_bad_square_brackets_spaces_highlighting = none # Disable Resharper's "Bad square brackets spaces" highlighting
401
resharper_bad_parens_spaces_highlighting = none # Disable Resharper's "Bad parens spaces" highlighting
402

403
# Resharper enabled rules: https://www.jetbrains.com/help/resharper/Reference__Code_Inspections_CSHARP.html#CodeSmell
404
resharper_comment_typo_highlighting = suggestion # Resharper's "Comment typo" highlighting
405
resharper_redundant_using_directive_highlighting = warning # Resharper's "Redundant using directive" highlighting
406
resharper_inconsistent_naming_highlighting = warning # Resharper's "Inconsistent naming" highlighting
407
resharper_redundant_this_qualifier_highlighting = warning # Resharper's "Redundant 'this' qualifier" highlighting
408
resharper_arrange_this_qualifier_highlighting = warning # Resharper's "Arrange 'this' qualifier" highlighting
409

410
###############################
411
# Java Coding Conventions     #
412
###############################
413
[*.java]
414
charset = utf-8
415
end_of_line = lf
416
indent_size = 2
417
indent_style = space
418
insert_final_newline = false
419
tab_width = 2
420
ij_formatter_off_tag = @formatter:off
421
ij_formatter_on_tag = @formatter:on
422
ij_smart_tabs = false
423
ij_visual_guides = none
424

425
max_line_length = 100
426
ij_continuation_indent_size = 4
427
ij_formatter_tags_enabled = false
428
ij_wrap_on_typing = false
429

430
ij_java_align_consecutive_assignments = false
431
ij_java_align_consecutive_variable_declarations = false
432
ij_java_align_group_field_declarations = false
433
ij_java_align_multiline_annotation_parameters = false
434
ij_java_align_multiline_array_initializer_expression = false
435
ij_java_align_multiline_assignment = false
436
ij_java_align_multiline_binary_operation = false
437
ij_java_align_multiline_chained_methods = false
438
ij_java_align_multiline_extends_list = false
439
ij_java_align_multiline_for = false
440
ij_java_align_multiline_method_parentheses = false
441
ij_java_align_multiline_parameters = false
442
ij_java_align_multiline_parameters_in_calls = false
443
ij_java_align_multiline_parenthesized_expression = false
444
ij_java_align_multiline_resources = false
445
ij_java_align_multiline_ternary_operation = false
446
ij_java_align_multiline_throws_list = false
447
ij_java_align_subsequent_simple_methods = false
448
ij_java_align_throws_keyword = false
449
ij_java_annotation_parameter_wrap = off
450
ij_java_array_initializer_new_line_after_left_brace = false
451
ij_java_array_initializer_right_brace_on_new_line = false
452
ij_java_array_initializer_wrap = normal
453
ij_java_assert_statement_colon_on_next_line = false
454
ij_java_assert_statement_wrap = off
455
ij_java_assignment_wrap = off
456
ij_java_binary_operation_sign_on_next_line = true
457
ij_java_binary_operation_wrap = normal
458
ij_java_blank_lines_after_anonymous_class_header = 0
459
ij_java_blank_lines_after_class_header = 1
460
ij_java_blank_lines_after_imports = 1
461
ij_java_blank_lines_after_package = 1
462
ij_java_blank_lines_around_class = 1
463
ij_java_blank_lines_around_field = 0
464
ij_java_blank_lines_around_field_in_interface = 0
465
ij_java_blank_lines_around_initializer = 1
466
ij_java_blank_lines_around_method = 1
467
ij_java_blank_lines_around_method_in_interface = 1
468
ij_java_blank_lines_before_class_end = 0
469
ij_java_blank_lines_before_imports = 1
470
ij_java_blank_lines_before_method_body = 0
471
ij_java_blank_lines_before_package = 0
472
ij_java_block_brace_style = end_of_line
473
ij_java_block_comment_at_first_column = true
474
ij_java_call_parameters_new_line_after_left_paren = false
475
ij_java_call_parameters_right_paren_on_new_line = false
476
ij_java_call_parameters_wrap = normal
477
ij_java_case_statement_on_separate_line = true
478
ij_java_catch_on_new_line = false
479
ij_java_class_annotation_wrap = split_into_lines
480
ij_java_class_brace_style = end_of_line
481
ij_java_class_count_to_use_import_on_demand = 999
482
ij_java_class_names_in_javadoc = 1
483
ij_java_do_not_indent_top_level_class_members = false
484
ij_java_do_not_wrap_after_single_annotation = false
485
ij_java_do_while_brace_force = always
486
ij_java_doc_add_blank_line_after_description = true
487
ij_java_doc_add_blank_line_after_param_comments = false
488
ij_java_doc_add_blank_line_after_return = false
489
ij_java_doc_add_p_tag_on_empty_lines = true
490
ij_java_doc_align_exception_comments = true
491
ij_java_doc_align_param_comments = true
492
ij_java_doc_do_not_wrap_if_one_line = false
493
ij_java_doc_enable_formatting = true
494
ij_java_doc_enable_leading_asterisks = true
495
ij_java_doc_indent_on_continuation = false
496
ij_java_doc_keep_empty_lines = true
497
ij_java_doc_keep_empty_parameter_tag = true
498
ij_java_doc_keep_empty_return_tag = true
499
ij_java_doc_keep_empty_throws_tag = true
500
ij_java_doc_keep_invalid_tags = true
501
ij_java_doc_param_description_on_new_line = false
502
ij_java_doc_preserve_line_breaks = false
503
ij_java_doc_use_throws_not_exception_tag = true
504
ij_java_else_on_new_line = false
505
ij_java_entity_dd_suffix = EJB
506
ij_java_entity_eb_suffix = Bean
507
ij_java_entity_hi_suffix = Home
508
ij_java_entity_lhi_prefix = Local
509
ij_java_entity_lhi_suffix = Home
510
ij_java_entity_li_prefix = Local
511
ij_java_entity_pk_class = java.lang.String
512
ij_java_entity_vo_suffix = VO
513
ij_java_enum_constants_wrap = off
514
ij_java_extends_keyword_wrap = off
515
ij_java_extends_list_wrap = normal
516
ij_java_field_annotation_wrap = split_into_lines
517
ij_java_finally_on_new_line = false
518
ij_java_for_brace_force = always
519
ij_java_for_statement_new_line_after_left_paren = false
520
ij_java_for_statement_right_paren_on_new_line = false
521
ij_java_for_statement_wrap = normal
522
ij_java_generate_final_locals = false
523
ij_java_generate_final_parameters = false
524
ij_java_if_brace_force = always
525
ij_java_imports_layout = $*, |, *
526
ij_java_indent_case_from_switch = true
527
ij_java_insert_inner_class_imports = true
528
ij_java_insert_override_annotation = true
529
ij_java_keep_blank_lines_before_right_brace = 2
530
ij_java_keep_blank_lines_between_package_declaration_and_header = 2
531
ij_java_keep_blank_lines_in_code = 1
532
ij_java_keep_blank_lines_in_declarations = 2
533
ij_java_keep_control_statement_in_one_line = false
534
ij_java_keep_first_column_comment = true
535
ij_java_keep_indents_on_empty_lines = false
536
ij_java_keep_line_breaks = true
537
ij_java_keep_multiple_expressions_in_one_line = false
538
ij_java_keep_simple_blocks_in_one_line = false
539
ij_java_keep_simple_classes_in_one_line = false
540
ij_java_keep_simple_lambdas_in_one_line = false
541
ij_java_keep_simple_methods_in_one_line = false
542
ij_java_lambda_brace_style = end_of_line
543
ij_java_layout_static_imports_separately = true
544
ij_java_line_comment_add_space = false
545
ij_java_line_comment_at_first_column = true
546
ij_java_message_dd_suffix = EJB
547
ij_java_message_eb_suffix = Bean
548
ij_java_method_annotation_wrap = split_into_lines
549
ij_java_method_brace_style = end_of_line
550
ij_java_method_call_chain_wrap = normal
551
ij_java_method_parameters_new_line_after_left_paren = false
552
ij_java_method_parameters_right_paren_on_new_line = false
553
ij_java_method_parameters_wrap = normal
554
ij_java_modifier_list_wrap = false
555
ij_java_names_count_to_use_import_on_demand = 999
556
ij_java_parameter_annotation_wrap = off
557
ij_java_parentheses_expression_new_line_after_left_paren = false
558
ij_java_parentheses_expression_right_paren_on_new_line = false
559
ij_java_place_assignment_sign_on_next_line = false
560
ij_java_prefer_longer_names = true
561
ij_java_prefer_parameters_wrap = false
562
ij_java_repeat_synchronized = true
563
ij_java_replace_instanceof_and_cast = false
564
ij_java_replace_null_check = true
565
ij_java_replace_sum_lambda_with_method_ref = true
566
ij_java_resource_list_new_line_after_left_paren = false
567
ij_java_resource_list_right_paren_on_new_line = false
568
ij_java_resource_list_wrap = off
569
ij_java_session_dd_suffix = EJB
570
ij_java_session_eb_suffix = Bean
571
ij_java_session_hi_suffix = Home
572
ij_java_session_lhi_prefix = Local
573
ij_java_session_lhi_suffix = Home
574
ij_java_session_li_prefix = Local
575
ij_java_session_si_suffix = Service
576
ij_java_space_after_closing_angle_bracket_in_type_argument = false
577
ij_java_space_after_colon = true
578
ij_java_space_after_comma = true
579
ij_java_space_after_comma_in_type_arguments = true
580
ij_java_space_after_for_semicolon = true
581
ij_java_space_after_quest = true
582
ij_java_space_after_type_cast = true
583
ij_java_space_before_annotation_array_initializer_left_brace = false
584
ij_java_space_before_annotation_parameter_list = false
585
ij_java_space_before_array_initializer_left_brace = false
586
ij_java_space_before_catch_keyword = true
587
ij_java_space_before_catch_left_brace = true
588
ij_java_space_before_catch_parentheses = true
589
ij_java_space_before_class_left_brace = true
590
ij_java_space_before_colon = true
591
ij_java_space_before_colon_in_foreach = true
592
ij_java_space_before_comma = false
593
ij_java_space_before_do_left_brace = true
594
ij_java_space_before_else_keyword = true
595
ij_java_space_before_else_left_brace = true
596
ij_java_space_before_finally_keyword = true
597
ij_java_space_before_finally_left_brace = true
598
ij_java_space_before_for_left_brace = true
599
ij_java_space_before_for_parentheses = true
600
ij_java_space_before_for_semicolon = false
601
ij_java_space_before_if_left_brace = true
602
ij_java_space_before_if_parentheses = true
603
ij_java_space_before_method_call_parentheses = false
604
ij_java_space_before_method_left_brace = true
605
ij_java_space_before_method_parentheses = false
606
ij_java_space_before_opening_angle_bracket_in_type_parameter = false
607
ij_java_space_before_quest = true
608
ij_java_space_before_switch_left_brace = true
609
ij_java_space_before_switch_parentheses = true
610
ij_java_space_before_synchronized_left_brace = true
611
ij_java_space_before_synchronized_parentheses = true
612
ij_java_space_before_try_left_brace = true
613
ij_java_space_before_try_parentheses = true
614
ij_java_space_before_type_parameter_list = false
615
ij_java_space_before_while_keyword = true
616
ij_java_space_before_while_left_brace = true
617
ij_java_space_before_while_parentheses = true
618
ij_java_space_inside_one_line_enum_braces = false
619
ij_java_space_within_empty_array_initializer_braces = false
620
ij_java_space_within_empty_method_call_parentheses = false
621
ij_java_space_within_empty_method_parentheses = false
622
ij_java_spaces_around_additive_operators = true
623
ij_java_spaces_around_assignment_operators = true
624
ij_java_spaces_around_bitwise_operators = true
625
ij_java_spaces_around_equality_operators = true
626
ij_java_spaces_around_lambda_arrow = true
627
ij_java_spaces_around_logical_operators = true
628
ij_java_spaces_around_method_ref_dbl_colon = false
629
ij_java_spaces_around_multiplicative_operators = true
630
ij_java_spaces_around_relational_operators = true
631
ij_java_spaces_around_shift_operators = true
632
ij_java_spaces_around_type_bounds_in_type_parameters = true
633
ij_java_spaces_around_unary_operator = false
634
ij_java_spaces_within_angle_brackets = false
635
ij_java_spaces_within_annotation_parentheses = false
636
ij_java_spaces_within_array_initializer_braces = false
637
ij_java_spaces_within_braces = false
638
ij_java_spaces_within_brackets = false
639
ij_java_spaces_within_cast_parentheses = false
640
ij_java_spaces_within_catch_parentheses = false
641
ij_java_spaces_within_for_parentheses = false
642
ij_java_spaces_within_if_parentheses = false
643
ij_java_spaces_within_method_call_parentheses = false
644
ij_java_spaces_within_method_parentheses = false
645
ij_java_spaces_within_parentheses = false
646
ij_java_spaces_within_switch_parentheses = false
647
ij_java_spaces_within_synchronized_parentheses = false
648
ij_java_spaces_within_try_parentheses = false
649
ij_java_spaces_within_while_parentheses = false
650
ij_java_special_else_if_treatment = true
651
ij_java_subclass_name_suffix = Impl
652
ij_java_ternary_operation_signs_on_next_line = true
653
ij_java_ternary_operation_wrap = normal
654
ij_java_test_name_suffix = Test
655
ij_java_throws_keyword_wrap = normal
656
ij_java_throws_list_wrap = off
657
ij_java_use_external_annotations = false
658
ij_java_use_fq_class_names = false
659
ij_java_use_single_class_imports = true
660
ij_java_variable_annotation_wrap = off
661
ij_java_visibility = public
662
ij_java_while_brace_force = always
663
ij_java_while_on_new_line = false
664
ij_java_wrap_comments = true
665
ij_java_wrap_first_method_in_call_chain = false
666
ij_java_wrap_long_lines = false
667

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.