1
0

.editorconfig 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. root = true
  2. [*]
  3. charset = utf-8
  4. # Indentation and spacing
  5. indent_size = 4
  6. indent_style = space
  7. tab_width = 4
  8. # New line preferences
  9. #end_of_line = crlf
  10. insert_final_newline = true
  11. trim_trailing_whitespace = true
  12. max_line_length = 120
  13. #### .NET Coding Conventions ####
  14. # Organize usings
  15. #dotnet_separate_import_directive_groups = false
  16. #dotnet_sort_system_directives_first = true
  17. # this. and Me. preferences
  18. dotnet_style_qualification_for_event = false:suggestion
  19. dotnet_style_qualification_for_field = false:suggestion
  20. dotnet_style_qualification_for_method = false:suggestion
  21. dotnet_style_qualification_for_property = false:suggestion
  22. # Language keywords vs BCL types preferences
  23. dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
  24. dotnet_style_predefined_type_for_member_access = true:suggestion
  25. # Parentheses preferences
  26. dotnet_style_parentheses_in_arithmetic_binary_operators = never_if_unnecessary:suggestion
  27. dotnet_style_parentheses_in_other_binary_operators = never_if_unnecessary:suggestion
  28. dotnet_style_parentheses_in_relational_binary_operators = never_if_unnecessary:suggestion
  29. # Modifier preferences
  30. dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion
  31. # Expression-level preferences
  32. #dotnet_style_coalesce_expression = true:suggestion
  33. #dotnet_style_collection_initializer = true:suggestion
  34. #dotnet_style_explicit_tuple_names = true:suggestion
  35. #dotnet_style_null_propagation = true:suggestion
  36. #dotnet_style_object_initializer = true:suggestion
  37. #dotnet_style_prefer_auto_properties = true:silent
  38. #dotnet_style_prefer_compound_assignment = true:suggestion
  39. #dotnet_style_prefer_conditional_expression_over_assignment = true:silent
  40. #dotnet_style_prefer_conditional_expression_over_return = true:silent
  41. #dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
  42. #dotnet_style_prefer_inferred_tuple_names = true:suggestion
  43. #dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
  44. #dotnet_style_prefer_simplified_interpolation = true:suggestion
  45. # Field preferences
  46. #dotnet_style_readonly_field = true:suggestion
  47. # Parameter preferences
  48. #dotnet_code_quality_unused_parameters = all:suggestion
  49. #### C# Coding Conventions ####
  50. # var preferences
  51. csharp_style_var_elsewhere = true:suggestion
  52. csharp_style_var_for_built_in_types = true:suggestion
  53. csharp_style_var_when_type_is_apparent = true:suggestion
  54. # Expression-bodied members
  55. csharp_style_expression_bodied_accessors = true:suggestion
  56. csharp_style_expression_bodied_constructors = false:suggestion
  57. #csharp_style_expression_bodied_indexers = true:silent
  58. #csharp_style_expression_bodied_lambdas = true:silent
  59. #csharp_style_expression_bodied_local_functions = false:silent
  60. csharp_style_expression_bodied_methods = false:suggestion
  61. #csharp_style_expression_bodied_operators = false:silent
  62. csharp_style_expression_bodied_properties = true:suggestion
  63. # Pattern matching preferences
  64. #csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
  65. #csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
  66. #csharp_style_prefer_switch_expression = true:suggestion
  67. # Null-checking preferences
  68. #csharp_style_conditional_delegate_call = true:suggestion
  69. # Modifier preferences
  70. #csharp_prefer_static_local_function = true:suggestion
  71. csharp_preferred_modifier_order = public, private, protected, internal, new, abstract, virtual, sealed, override, static, readonly, extern, unsafe, volatile, async:suggestion
  72. # Code-block preferences
  73. #csharp_prefer_braces = true:silent
  74. #csharp_prefer_simple_using_statement = true:suggestion
  75. # Expression-level preferences
  76. #csharp_prefer_simple_default_expression = true:suggestion
  77. #csharp_style_deconstructed_variable_declaration = true:suggestion
  78. #csharp_style_inlined_variable_declaration = true:suggestion
  79. #csharp_style_pattern_local_over_anonymous_function = true:suggestion
  80. #csharp_style_prefer_index_operator = true:suggestion
  81. #csharp_style_prefer_range_operator = true:suggestion
  82. #csharp_style_throw_expression = true:suggestion
  83. #csharp_style_unused_value_assignment_preference = discard_variable:suggestion
  84. #csharp_style_unused_value_expression_statement_preference = discard_variable:silent
  85. # 'using' directive preferences
  86. csharp_using_directive_placement = outside_namespace:silent
  87. #### C# Formatting Rules ####
  88. # New line preferences
  89. csharp_new_line_before_catch = true
  90. csharp_new_line_before_else = true
  91. csharp_new_line_before_finally = true
  92. #csharp_new_line_before_members_in_anonymous_types = true
  93. csharp_new_line_before_members_in_object_initializers = false
  94. csharp_new_line_before_open_brace = all
  95. csharp_new_line_between_query_expression_clauses = true
  96. resharper_csharp_place_simple_embedded_statement_on_same_line = never
  97. resharper_csharp_keep_existing_embedded_arrangement = false
  98. # Indentation preferences
  99. #csharp_indent_block_contents = true
  100. csharp_indent_braces = false
  101. #csharp_indent_case_contents = true
  102. #csharp_indent_case_contents_when_block = true
  103. #csharp_indent_labels = one_less_than_current
  104. csharp_indent_switch_labels = true
  105. # Space preferences
  106. csharp_space_after_cast = false
  107. csharp_space_after_colon_in_inheritance_clause = true
  108. csharp_space_after_comma = true
  109. csharp_space_after_dot = false
  110. csharp_space_after_keywords_in_control_flow_statements = true
  111. csharp_space_after_semicolon_in_for_statement = true
  112. csharp_space_around_binary_operators = before_and_after
  113. #csharp_space_around_declaration_statements = false
  114. csharp_space_before_colon_in_inheritance_clause = true
  115. csharp_space_before_comma = false
  116. csharp_space_before_dot = false
  117. csharp_space_before_open_square_brackets = false
  118. csharp_space_before_semicolon_in_for_statement = false
  119. csharp_space_between_empty_square_brackets = false
  120. csharp_space_between_method_call_empty_parameter_list_parentheses = false
  121. csharp_space_between_method_call_name_and_opening_parenthesis = false
  122. csharp_space_between_method_call_parameter_list_parentheses = false
  123. csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
  124. csharp_space_between_method_declaration_name_and_open_parenthesis = false
  125. csharp_space_between_method_declaration_parameter_list_parentheses = false
  126. csharp_space_between_parentheses = false
  127. csharp_space_between_square_brackets = false
  128. # Wrapping preferences
  129. csharp_preserve_single_line_blocks = true
  130. #csharp_preserve_single_line_statements = true
  131. #### Naming styles ####
  132. # Naming rules
  133. #dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
  134. #dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
  135. #dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
  136. #dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
  137. #dotnet_naming_rule.types_should_be_pascal_case.symbols = types
  138. #dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
  139. #dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
  140. #dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
  141. #dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
  142. # Symbol specifications
  143. #dotnet_naming_symbols.interface.applicable_kinds = interface
  144. #dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
  145. #dotnet_naming_symbols.interface.required_modifiers =
  146. #dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
  147. #dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
  148. #dotnet_naming_symbols.types.required_modifiers =
  149. #dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
  150. #dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
  151. #dotnet_naming_symbols.non_field_members.required_modifiers =
  152. # Naming styles
  153. #dotnet_naming_style.pascal_case.required_prefix =
  154. #dotnet_naming_style.pascal_case.required_suffix =
  155. #dotnet_naming_style.pascal_case.word_separator =
  156. #dotnet_naming_style.pascal_case.capitalization = pascal_case
  157. #dotnet_naming_style.begins_with_i.required_prefix = I
  158. #dotnet_naming_style.begins_with_i.required_suffix =
  159. #dotnet_naming_style.begins_with_i.word_separator =
  160. #dotnet_naming_style.begins_with_i.capitalization = pascal_case
  161. dotnet_diagnostic.ide0055.severity = warning
  162. dotnet_naming_rule.constants_rule.severity = warning
  163. dotnet_naming_rule.constants_rule.style = upper_camel_case_style
  164. dotnet_naming_rule.constants_rule.symbols = constants_symbols
  165. dotnet_naming_rule.event_rule.severity = warning
  166. dotnet_naming_rule.event_rule.style = upper_camel_case_style
  167. dotnet_naming_rule.event_rule.symbols = event_symbols
  168. dotnet_naming_rule.interfaces_rule.severity = warning
  169. dotnet_naming_rule.interfaces_rule.style = i_upper_camel_case_style
  170. dotnet_naming_rule.interfaces_rule.symbols = interfaces_symbols
  171. dotnet_naming_rule.locals_rule.severity = warning
  172. dotnet_naming_rule.locals_rule.style = lower_camel_case_style_1
  173. dotnet_naming_rule.locals_rule.symbols = locals_symbols
  174. dotnet_naming_rule.local_constants_rule.severity = warning
  175. dotnet_naming_rule.local_constants_rule.style = lower_camel_case_style_1
  176. dotnet_naming_rule.local_constants_rule.symbols = local_constants_symbols
  177. dotnet_naming_rule.local_functions_rule.severity = warning
  178. dotnet_naming_rule.local_functions_rule.style = upper_camel_case_style
  179. dotnet_naming_rule.local_functions_rule.symbols = local_functions_symbols
  180. dotnet_naming_rule.method_rule.severity = warning
  181. dotnet_naming_rule.method_rule.style = upper_camel_case_style
  182. dotnet_naming_rule.method_rule.symbols = method_symbols
  183. dotnet_naming_rule.parameters_rule.severity = warning
  184. dotnet_naming_rule.parameters_rule.style = lower_camel_case_style_1
  185. dotnet_naming_rule.parameters_rule.symbols = parameters_symbols
  186. dotnet_naming_rule.private_constants_rule.severity = warning
  187. dotnet_naming_rule.private_constants_rule.style = upper_camel_case_style
  188. dotnet_naming_rule.private_constants_rule.symbols = private_constants_symbols
  189. dotnet_naming_rule.private_instance_fields_rule.severity = warning
  190. dotnet_naming_rule.private_instance_fields_rule.style = lower_camel_case_style
  191. dotnet_naming_rule.private_instance_fields_rule.symbols = private_instance_fields_symbols
  192. dotnet_naming_rule.private_static_fields_rule.severity = warning
  193. dotnet_naming_rule.private_static_fields_rule.style = lower_camel_case_style
  194. dotnet_naming_rule.private_static_fields_rule.symbols = private_static_fields_symbols
  195. dotnet_naming_rule.private_static_readonly_rule.severity = warning
  196. dotnet_naming_rule.private_static_readonly_rule.style = upper_camel_case_style
  197. dotnet_naming_rule.private_static_readonly_rule.symbols = private_static_readonly_symbols
  198. dotnet_naming_rule.property_rule.severity = warning
  199. dotnet_naming_rule.property_rule.style = upper_camel_case_style
  200. dotnet_naming_rule.property_rule.symbols = property_symbols
  201. dotnet_naming_rule.public_fields_rule.severity = warning
  202. dotnet_naming_rule.public_fields_rule.style = upper_camel_case_style
  203. dotnet_naming_rule.public_fields_rule.symbols = public_fields_symbols
  204. dotnet_naming_rule.static_readonly_rule.severity = warning
  205. dotnet_naming_rule.static_readonly_rule.style = upper_camel_case_style
  206. dotnet_naming_rule.static_readonly_rule.symbols = static_readonly_symbols
  207. dotnet_naming_rule.types_and_namespaces_rule.severity = warning
  208. dotnet_naming_rule.types_and_namespaces_rule.style = upper_camel_case_style
  209. dotnet_naming_rule.types_and_namespaces_rule.symbols = types_and_namespaces_symbols
  210. dotnet_naming_rule.type_parameters_rule.severity = warning
  211. dotnet_naming_rule.type_parameters_rule.style = t_upper_camel_case_style
  212. dotnet_naming_rule.type_parameters_rule.symbols = type_parameters_symbols
  213. dotnet_naming_style.i_upper_camel_case_style.capitalization = pascal_case
  214. dotnet_naming_style.i_upper_camel_case_style.required_prefix = I
  215. dotnet_naming_style.lower_camel_case_style.capitalization = camel_case
  216. dotnet_naming_style.lower_camel_case_style.required_prefix = _
  217. dotnet_naming_style.lower_camel_case_style_1.capitalization = camel_case
  218. dotnet_naming_style.t_upper_camel_case_style.capitalization = pascal_case
  219. dotnet_naming_style.t_upper_camel_case_style.required_prefix = T
  220. dotnet_naming_style.upper_camel_case_style.capitalization = pascal_case
  221. dotnet_naming_symbols.constants_symbols.applicable_accessibilities = public, internal, protected, protected_internal, private_protected
  222. dotnet_naming_symbols.constants_symbols.applicable_kinds = field
  223. dotnet_naming_symbols.constants_symbols.required_modifiers = const
  224. dotnet_naming_symbols.event_symbols.applicable_accessibilities = *
  225. dotnet_naming_symbols.event_symbols.applicable_kinds = event
  226. dotnet_naming_symbols.interfaces_symbols.applicable_accessibilities = *
  227. dotnet_naming_symbols.interfaces_symbols.applicable_kinds = interface
  228. dotnet_naming_symbols.locals_symbols.applicable_accessibilities = *
  229. dotnet_naming_symbols.locals_symbols.applicable_kinds = local
  230. dotnet_naming_symbols.local_constants_symbols.applicable_accessibilities = *
  231. dotnet_naming_symbols.local_constants_symbols.applicable_kinds = local
  232. dotnet_naming_symbols.local_constants_symbols.required_modifiers = const
  233. dotnet_naming_symbols.local_functions_symbols.applicable_accessibilities = *
  234. dotnet_naming_symbols.local_functions_symbols.applicable_kinds = local_function
  235. dotnet_naming_symbols.method_symbols.applicable_accessibilities = *
  236. dotnet_naming_symbols.method_symbols.applicable_kinds = method
  237. dotnet_naming_symbols.parameters_symbols.applicable_accessibilities = *
  238. dotnet_naming_symbols.parameters_symbols.applicable_kinds = parameter
  239. dotnet_naming_symbols.private_constants_symbols.applicable_accessibilities = private
  240. dotnet_naming_symbols.private_constants_symbols.applicable_kinds = field
  241. dotnet_naming_symbols.private_constants_symbols.required_modifiers = const
  242. dotnet_naming_symbols.private_instance_fields_symbols.applicable_accessibilities = private
  243. dotnet_naming_symbols.private_instance_fields_symbols.applicable_kinds = field
  244. dotnet_naming_symbols.private_static_fields_symbols.applicable_accessibilities = private
  245. dotnet_naming_symbols.private_static_fields_symbols.applicable_kinds = field
  246. dotnet_naming_symbols.private_static_fields_symbols.required_modifiers = static
  247. dotnet_naming_symbols.private_static_readonly_symbols.applicable_accessibilities = private
  248. dotnet_naming_symbols.private_static_readonly_symbols.applicable_kinds = field
  249. dotnet_naming_symbols.private_static_readonly_symbols.required_modifiers = static, readonly
  250. dotnet_naming_symbols.property_symbols.applicable_accessibilities = *
  251. dotnet_naming_symbols.property_symbols.applicable_kinds = property
  252. dotnet_naming_symbols.public_fields_symbols.applicable_accessibilities = public, internal, protected, protected_internal, private_protected
  253. dotnet_naming_symbols.public_fields_symbols.applicable_kinds = field
  254. dotnet_naming_symbols.static_readonly_symbols.applicable_accessibilities = public, internal, protected, protected_internal, private_protected
  255. dotnet_naming_symbols.static_readonly_symbols.applicable_kinds = field
  256. dotnet_naming_symbols.static_readonly_symbols.required_modifiers = static, readonly
  257. dotnet_naming_symbols.types_and_namespaces_symbols.applicable_accessibilities = *
  258. dotnet_naming_symbols.types_and_namespaces_symbols.applicable_kinds = namespace, class, struct, enum, delegate
  259. dotnet_naming_symbols.type_parameters_symbols.applicable_accessibilities = *
  260. dotnet_naming_symbols.type_parameters_symbols.applicable_kinds = type_parameter
  261. # ReSharper properties
  262. resharper_braces_for_ifelse = required_for_multiline
  263. resharper_csharp_wrap_arguments_style = chop_if_long
  264. resharper_csharp_wrap_parameters_style = chop_if_long
  265. resharper_keep_existing_attribute_arrangement = true
  266. resharper_wrap_chained_binary_patterns = chop_if_long
  267. resharper_wrap_chained_method_calls = chop_if_long
  268. resharper_csharp_trailing_comma_in_multiline_lists = true
  269. resharper_csharp_qualified_using_at_nested_scope = false
  270. resharper_csharp_prefer_qualified_reference = false
  271. resharper_csharp_allow_alias = false
  272. [*.{csproj,xml,yml,yaml,dll.config,msbuildproj,targets,props}]
  273. indent_size = 2
  274. [nuget.config]
  275. indent_size = 2
  276. [{*.yaml,*.yml}]
  277. ij_yaml_indent_sequence_value = false