.editorconfig 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532
  1. # With more recent updates Visual Studio 2017 supports EditorConfig files out of the box
  2. # Visual Studio Code needs an extension: https://github.com/editorconfig/editorconfig-vscode
  3. # For emacs, vim, np++ and other editors, see here: https://github.com/editorconfig
  4. ###############################
  5. # Core EditorConfig Options #
  6. ###############################
  7. root = true
  8. # All files
  9. [*]
  10. indent_style = space
  11. indent_size = 4
  12. charset = utf-8
  13. trim_trailing_whitespace = true
  14. insert_final_newline = true
  15. end_of_line = lf
  16. max_line_length = off
  17. # YAML indentation
  18. [*.{yml,yaml}]
  19. indent_size = 2
  20. # XML indentation
  21. [*.{csproj,xml}]
  22. indent_size = 2
  23. ###############################
  24. # .NET Coding Conventions #
  25. ###############################
  26. [*.{cs,vb}]
  27. # Organize usings
  28. dotnet_sort_system_directives_first = true
  29. # this. preferences
  30. dotnet_style_qualification_for_field = false:silent
  31. dotnet_style_qualification_for_property = false:silent
  32. dotnet_style_qualification_for_method = false:silent
  33. dotnet_style_qualification_for_event = false:silent
  34. # Language keywords vs BCL types preferences
  35. dotnet_style_predefined_type_for_locals_parameters_members = true:silent
  36. dotnet_style_predefined_type_for_member_access = true:silent
  37. # Parentheses preferences
  38. dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
  39. dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
  40. dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
  41. dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
  42. # Modifier preferences
  43. dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
  44. dotnet_style_readonly_field = true:suggestion
  45. # Expression-level preferences
  46. dotnet_style_object_initializer = true:suggestion
  47. dotnet_style_collection_initializer = true:suggestion
  48. dotnet_style_explicit_tuple_names = true:suggestion
  49. dotnet_style_null_propagation = true:suggestion
  50. dotnet_style_coalesce_expression = true:suggestion
  51. dotnet_style_prefer_is_null_check_over_reference_equality_method = true:silent
  52. dotnet_style_prefer_inferred_tuple_names = true:suggestion
  53. dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
  54. dotnet_style_prefer_auto_properties = true:silent
  55. dotnet_style_prefer_conditional_expression_over_assignment = true:silent
  56. dotnet_style_prefer_conditional_expression_over_return = true:silent
  57. ###############################
  58. # Naming Conventions #
  59. ###############################
  60. # Style Definitions (From Roslyn)
  61. # Non-private static fields are PascalCase
  62. dotnet_naming_rule.non_private_static_fields_should_be_pascal_case.severity = suggestion
  63. dotnet_naming_rule.non_private_static_fields_should_be_pascal_case.symbols = non_private_static_fields
  64. dotnet_naming_rule.non_private_static_fields_should_be_pascal_case.style = non_private_static_field_style
  65. dotnet_naming_symbols.non_private_static_fields.applicable_kinds = field
  66. dotnet_naming_symbols.non_private_static_fields.applicable_accessibilities = public, protected, internal, protected_internal, private_protected
  67. dotnet_naming_symbols.non_private_static_fields.required_modifiers = static
  68. dotnet_naming_style.non_private_static_field_style.capitalization = pascal_case
  69. # Constants are PascalCase
  70. dotnet_naming_rule.constants_should_be_pascal_case.severity = suggestion
  71. dotnet_naming_rule.constants_should_be_pascal_case.symbols = constants
  72. dotnet_naming_rule.constants_should_be_pascal_case.style = constant_style
  73. dotnet_naming_symbols.constants.applicable_kinds = field, local
  74. dotnet_naming_symbols.constants.required_modifiers = const
  75. dotnet_naming_style.constant_style.capitalization = pascal_case
  76. # Static fields are camelCase and start with s_
  77. dotnet_naming_rule.static_fields_should_be_camel_case.severity = suggestion
  78. dotnet_naming_rule.static_fields_should_be_camel_case.symbols = static_fields
  79. dotnet_naming_rule.static_fields_should_be_camel_case.style = static_field_style
  80. dotnet_naming_symbols.static_fields.applicable_kinds = field
  81. dotnet_naming_symbols.static_fields.required_modifiers = static
  82. dotnet_naming_style.static_field_style.capitalization = camel_case
  83. dotnet_naming_style.static_field_style.required_prefix = _
  84. # Instance fields are camelCase and start with _
  85. dotnet_naming_rule.instance_fields_should_be_camel_case.severity = suggestion
  86. dotnet_naming_rule.instance_fields_should_be_camel_case.symbols = instance_fields
  87. dotnet_naming_rule.instance_fields_should_be_camel_case.style = instance_field_style
  88. dotnet_naming_symbols.instance_fields.applicable_kinds = field
  89. dotnet_naming_style.instance_field_style.capitalization = camel_case
  90. dotnet_naming_style.instance_field_style.required_prefix = _
  91. # Locals and parameters are camelCase
  92. dotnet_naming_rule.locals_should_be_camel_case.severity = suggestion
  93. dotnet_naming_rule.locals_should_be_camel_case.symbols = locals_and_parameters
  94. dotnet_naming_rule.locals_should_be_camel_case.style = camel_case_style
  95. dotnet_naming_symbols.locals_and_parameters.applicable_kinds = parameter, local
  96. dotnet_naming_style.camel_case_style.capitalization = camel_case
  97. # Local functions are PascalCase
  98. dotnet_naming_rule.local_functions_should_be_pascal_case.severity = suggestion
  99. dotnet_naming_rule.local_functions_should_be_pascal_case.symbols = local_functions
  100. dotnet_naming_rule.local_functions_should_be_pascal_case.style = local_function_style
  101. dotnet_naming_symbols.local_functions.applicable_kinds = local_function
  102. dotnet_naming_style.local_function_style.capitalization = pascal_case
  103. # By default, name items with PascalCase
  104. dotnet_naming_rule.members_should_be_pascal_case.severity = suggestion
  105. dotnet_naming_rule.members_should_be_pascal_case.symbols = all_members
  106. dotnet_naming_rule.members_should_be_pascal_case.style = pascal_case_style
  107. dotnet_naming_symbols.all_members.applicable_kinds = *
  108. dotnet_naming_style.pascal_case_style.capitalization = pascal_case
  109. ###############################
  110. # C# Coding Conventions #
  111. ###############################
  112. [*.cs]
  113. # var preferences
  114. csharp_style_var_for_built_in_types = true:silent
  115. csharp_style_var_when_type_is_apparent = true:silent
  116. csharp_style_var_elsewhere = true:silent
  117. # Expression-bodied members
  118. csharp_style_expression_bodied_methods = false:silent
  119. csharp_style_expression_bodied_constructors = false:silent
  120. csharp_style_expression_bodied_operators = false:silent
  121. csharp_style_expression_bodied_properties = true:silent
  122. csharp_style_expression_bodied_indexers = true:silent
  123. csharp_style_expression_bodied_accessors = true:silent
  124. # Pattern matching preferences
  125. csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
  126. csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
  127. # Null-checking preferences
  128. csharp_style_throw_expression = true:suggestion
  129. csharp_style_conditional_delegate_call = true:suggestion
  130. # Modifier preferences
  131. csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion
  132. # Expression-level preferences
  133. csharp_prefer_braces = true:silent
  134. csharp_style_deconstructed_variable_declaration = true:suggestion
  135. csharp_prefer_simple_default_expression = true:suggestion
  136. csharp_style_pattern_local_over_anonymous_function = true:suggestion
  137. csharp_style_inlined_variable_declaration = true:suggestion
  138. ###############################
  139. # C# Formatting Rules #
  140. ###############################
  141. # New line preferences
  142. csharp_new_line_before_open_brace = all
  143. csharp_new_line_before_else = true
  144. csharp_new_line_before_catch = true
  145. csharp_new_line_before_finally = true
  146. csharp_new_line_before_members_in_object_initializers = true
  147. csharp_new_line_before_members_in_anonymous_types = true
  148. csharp_new_line_between_query_expression_clauses = true
  149. # Indentation preferences
  150. csharp_indent_case_contents = true
  151. csharp_indent_switch_labels = true
  152. csharp_indent_labels = flush_left
  153. # Space preferences
  154. csharp_space_after_cast = false
  155. csharp_space_after_keywords_in_control_flow_statements = true
  156. csharp_space_between_method_call_parameter_list_parentheses = false
  157. csharp_space_between_method_declaration_parameter_list_parentheses = false
  158. csharp_space_between_parentheses = false
  159. csharp_space_before_colon_in_inheritance_clause = true
  160. csharp_space_after_colon_in_inheritance_clause = true
  161. csharp_space_around_binary_operators = before_and_after
  162. csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
  163. csharp_space_between_method_call_name_and_opening_parenthesis = false
  164. csharp_space_between_method_call_empty_parameter_list_parentheses = false
  165. # Wrapping preferences
  166. csharp_preserve_single_line_statements = true
  167. csharp_preserve_single_line_blocks = true
  168. ###############################
  169. # C# Analyzer Rules #
  170. ###############################
  171. ### ERROR #
  172. ###########
  173. # error on SA1000: The keyword 'new' should be followed by a space
  174. dotnet_diagnostic.SA1000.severity = error
  175. # error on SA1001: Commas should not be preceded by whitespace
  176. dotnet_diagnostic.SA1001.severity = error
  177. # error on SA1106: Code should not contain empty statements
  178. dotnet_diagnostic.SA1106.severity = error
  179. # error on SA1107: Code should not contain multiple statements on one line
  180. dotnet_diagnostic.SA1107.severity = error
  181. # error on SA1028: Code should not contain trailing whitespace
  182. dotnet_diagnostic.SA1028.severity = error
  183. # error on SA1117: The parameters should all be placed on the same line or each parameter should be placed on its own line
  184. dotnet_diagnostic.SA1117.severity = error
  185. # error on SA1137: Elements should have the same indentation
  186. dotnet_diagnostic.SA1137.severity = error
  187. # error on SA1142: Refer to tuple fields by name
  188. dotnet_diagnostic.SA1142.severity = error
  189. # error on SA1210: Using directives should be ordered alphabetically by the namespaces
  190. dotnet_diagnostic.SA1210.severity = error
  191. # error on SA1316: Tuple element names should use correct casing
  192. dotnet_diagnostic.SA1316.severity = error
  193. # error on SA1414: Tuple types in signatures should have element names
  194. dotnet_diagnostic.SA1414.severity = error
  195. # disable warning SA1513: Closing brace should be followed by blank line
  196. dotnet_diagnostic.SA1513.severity = error
  197. # error on SA1518: File is required to end with a single newline character
  198. dotnet_diagnostic.SA1518.severity = error
  199. # error on SA1629: Documentation text should end with a period
  200. dotnet_diagnostic.SA1629.severity = error
  201. # error on CA1001: Types that own disposable fields should be disposable
  202. dotnet_diagnostic.CA1001.severity = error
  203. # error on CA1012: Abstract types should not have public constructors
  204. dotnet_diagnostic.CA1012.severity = error
  205. # error on CA1063: Implement IDisposable correctly
  206. dotnet_diagnostic.CA1063.severity = error
  207. # error on CA1305: Specify IFormatProvider
  208. dotnet_diagnostic.CA1305.severity = error
  209. # error on CA1307: Specify StringComparison for clarity
  210. dotnet_diagnostic.CA1307.severity = error
  211. # error on CA1309: Use ordinal StringComparison
  212. dotnet_diagnostic.CA1309.severity = error
  213. # error on CA1310: Specify StringComparison for correctness
  214. dotnet_diagnostic.CA1310.severity = error
  215. # error on CA1513: Use 'ObjectDisposedException.ThrowIf' instead of explicitly throwing a new exception instance
  216. dotnet_diagnostic.CA1513.severity = error
  217. # error on CA1725: Parameter names should match base declaration
  218. dotnet_diagnostic.CA1725.severity = error
  219. # error on CA1725: Call async methods when in an async method
  220. dotnet_diagnostic.CA1727.severity = error
  221. # error on CA1813: Avoid unsealed attributes
  222. dotnet_diagnostic.CA1813.severity = error
  223. # error on CA1834: Use 'StringBuilder.Append(char)' instead of 'StringBuilder.Append(string)' when the input is a constant unit string
  224. dotnet_diagnostic.CA1834.severity = error
  225. # error on CA1843: Do not use 'WaitAll' with a single task
  226. dotnet_diagnostic.CA1843.severity = error
  227. # error on CA1845: Use span-based 'string.Concat'
  228. dotnet_diagnostic.CA1845.severity = error
  229. # error on CA1849: Call async methods when in an async method
  230. dotnet_diagnostic.CA1849.severity = error
  231. # error on CA1851: Possible multiple enumerations of IEnumerable collection
  232. dotnet_diagnostic.CA1851.severity = error
  233. # error on CA1854: Prefer a 'TryGetValue' call over a Dictionary indexer access guarded by a 'ContainsKey' check to avoid double lookup
  234. dotnet_diagnostic.CA1854.severity = error
  235. # error on CA1860: Avoid using 'Enumerable.Any()' extension method
  236. dotnet_diagnostic.CA1860.severity = error
  237. # error on CA1862: Use the 'StringComparison' method overloads to perform case-insensitive string comparisons
  238. dotnet_diagnostic.CA1862.severity = error
  239. # error on CA1863: Use 'CompositeFormat'
  240. dotnet_diagnostic.CA1863.severity = error
  241. # error on CA1864: Prefer the 'IDictionary.TryAdd(TKey, TValue)' method
  242. dotnet_diagnostic.CA1864.severity = error
  243. # error on CA1865-CA1867: Use 'string.Method(char)' instead of 'string.Method(string)' for string with single char
  244. dotnet_diagnostic.CA1865.severity = error
  245. dotnet_diagnostic.CA1866.severity = error
  246. dotnet_diagnostic.CA1867.severity = error
  247. # error on CA1868: Unnecessary call to 'Contains' for sets
  248. dotnet_diagnostic.CA1868.severity = error
  249. # error on CA1869: Cache and reuse 'JsonSerializerOptions' instances
  250. dotnet_diagnostic.CA1869.severity = error
  251. # error on CA1870: Use a cached 'SearchValues' instance
  252. dotnet_diagnostic.CA1870.severity = error
  253. # error on CA1871: Do not pass a nullable struct to 'ArgumentNullException.ThrowIfNull'
  254. dotnet_diagnostic.CA1871.severity = error
  255. # error on CA1872: Prefer 'Convert.ToHexString' and 'Convert.ToHexStringLower' over call chains based on 'BitConverter.ToString'
  256. dotnet_diagnostic.CA1872.severity = error
  257. # error on CA2016: Forward the CancellationToken parameter to methods that take one
  258. # or pass in 'CancellationToken.None' explicitly to indicate intentionally not propagating the token
  259. dotnet_diagnostic.CA2016.severity = error
  260. # error on CA2201: Exception type System.Exception is not sufficiently specific
  261. dotnet_diagnostic.CA2201.severity = error
  262. # error on CA2215: Dispose methods should call base class dispose
  263. dotnet_diagnostic.CA2215.severity = error
  264. # error on CA2249: Use 'string.Contains' instead of 'string.IndexOf' to improve readability
  265. dotnet_diagnostic.CA2249.severity = error
  266. # error on CA2254: Template should be a static expression
  267. dotnet_diagnostic.CA2254.severity = error
  268. ################
  269. ### SUGGESTION #
  270. ################
  271. # disable warning CA1014: Mark assemblies with CLSCompliantAttribute
  272. dotnet_diagnostic.CA1014.severity = suggestion
  273. # disable warning CA1024: Use properties where appropriate
  274. dotnet_diagnostic.CA1024.severity = suggestion
  275. # disable warning CA1031: Do not catch general exception types
  276. dotnet_diagnostic.CA1031.severity = suggestion
  277. # disable warning CA1032: Implement standard exception constructors
  278. dotnet_diagnostic.CA1032.severity = suggestion
  279. # disable warning CA1040: Avoid empty interfaces
  280. dotnet_diagnostic.CA1040.severity = suggestion
  281. # disable warning CA1062: Validate arguments of public methods
  282. dotnet_diagnostic.CA1062.severity = suggestion
  283. # TODO: enable when false positives are fixed
  284. # disable warning CA1508: Avoid dead conditional code
  285. dotnet_diagnostic.CA1508.severity = suggestion
  286. # disable warning CA1515: Consider making public types internal
  287. dotnet_diagnostic.CA1515.severity = suggestion
  288. # disable warning CA1716: Identifiers should not match keywords
  289. dotnet_diagnostic.CA1716.severity = suggestion
  290. # disable warning CA1720: Identifiers should not contain type names
  291. dotnet_diagnostic.CA1720.severity = suggestion
  292. # disable warning CA1724: Type names should not match namespaces
  293. dotnet_diagnostic.CA1724.severity = suggestion
  294. # disable warning CA1805: Do not initialize unnecessarily
  295. dotnet_diagnostic.CA1805.severity = suggestion
  296. # disable warning CA1812: internal class that is apparently never instantiated.
  297. # If so, remove the code from the assembly.
  298. # If this class is intended to contain only static members, make it static
  299. dotnet_diagnostic.CA1812.severity = suggestion
  300. # disable warning CA1822: Member does not access instance data and can be marked as static
  301. dotnet_diagnostic.CA1822.severity = suggestion
  302. # CA1859: Use concrete types when possible for improved performance
  303. dotnet_diagnostic.CA1859.severity = suggestion
  304. # TODO: Enable
  305. # CA1861: Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array
  306. dotnet_diagnostic.CA1861.severity = suggestion
  307. # disable warning CA2000: Dispose objects before losing scope
  308. dotnet_diagnostic.CA2000.severity = suggestion
  309. # disable warning CA2253: Named placeholders should not be numeric values
  310. dotnet_diagnostic.CA2253.severity = suggestion
  311. # disable warning CA5394: Do not use insecure randomness
  312. dotnet_diagnostic.CA5394.severity = suggestion
  313. # error on CA3003: Review code for file path injection vulnerabilities
  314. dotnet_diagnostic.CA3003.severity = suggestion
  315. # error on CA3006: Review code for process command injection vulnerabilities
  316. dotnet_diagnostic.CA3006.severity = suggestion
  317. ###############
  318. ### DISABLED #
  319. ###############
  320. # disable warning SA1009: Closing parenthesis should be followed by a space.
  321. dotnet_diagnostic.SA1009.severity = none
  322. # disable warning SA1011: Closing square bracket should be followed by a space.
  323. dotnet_diagnostic.SA1011.severity = none
  324. # disable warning SA1101: Prefix local calls with 'this.'
  325. dotnet_diagnostic.SA1101.severity = none
  326. # disable warning SA1108: Block statements should not contain embedded comments
  327. dotnet_diagnostic.SA1108.severity = none
  328. # disable warning SA1118: Parameter must not span multiple lines.
  329. dotnet_diagnostic.SA1118.severity = none
  330. # disable warning SA1128:: Put constructor initializers on their own line
  331. dotnet_diagnostic.SA1128.severity = none
  332. # disable warning SA1130: Use lambda syntax
  333. dotnet_diagnostic.SA1130.severity = none
  334. # disable warning SA1200: 'using' directive must appear within a namespace declaration
  335. dotnet_diagnostic.SA1200.severity = none
  336. # disable warning SA1202: 'public' members must come before 'private' members
  337. dotnet_diagnostic.SA1202.severity = none
  338. # disable warning SA1204: Static members must appear before non-static members
  339. dotnet_diagnostic.SA1204.severity = none
  340. # disable warning SA1309: Fields must not begin with an underscore
  341. dotnet_diagnostic.SA1309.severity = none
  342. # disable warning SA1311: Static readonly fields should begin with upper-case letter
  343. dotnet_diagnostic.SA1311.severity = none
  344. # disable warning SA1413: Use trailing comma in multi-line initializers
  345. dotnet_diagnostic.SA1413.severity = none
  346. # disable warning SA1512: Single-line comments must not be followed by blank line
  347. dotnet_diagnostic.SA1512.severity = none
  348. # disable warning SA1515: Single-line comment should be preceded by blank line
  349. dotnet_diagnostic.SA1515.severity = none
  350. # disable warning SA1600: Elements should be documented
  351. dotnet_diagnostic.SA1600.severity = none
  352. # disable warning SA1601: Partial elements should be documented
  353. dotnet_diagnostic.SA1601.severity = none
  354. # disable warning SA1602: Enumeration items should be documented
  355. dotnet_diagnostic.SA1602.severity = none
  356. # disable warning SA1633: The file header is missing or not located at the top of the file
  357. dotnet_diagnostic.SA1633.severity = none
  358. # disable warning CA1054: Change the type of parameter url from string to System.Uri
  359. dotnet_diagnostic.CA1054.severity = none
  360. # disable warning CA1055: URI return values should not be strings
  361. dotnet_diagnostic.CA1055.severity = none
  362. # disable warning CA1056: URI properties should not be strings
  363. dotnet_diagnostic.CA1056.severity = none
  364. # disable warning CA1303: Do not pass literals as localized parameters
  365. dotnet_diagnostic.CA1303.severity = none
  366. # disable warning CA1308: Normalize strings to uppercase
  367. dotnet_diagnostic.CA1308.severity = none
  368. # disable warning CA1848: Use the LoggerMessage delegates
  369. dotnet_diagnostic.CA1848.severity = none
  370. # disable warning CA2101: Specify marshaling for P/Invoke string arguments
  371. dotnet_diagnostic.CA2101.severity = none
  372. # disable warning CA2234: Pass System.Uri objects instead of strings
  373. dotnet_diagnostic.CA2234.severity = none
  374. # error on RS0030: Do not used banned APIs
  375. dotnet_diagnostic.RS0030.severity = error
  376. # disable warning IDISP001: Dispose created
  377. dotnet_diagnostic.IDISP001.severity = suggestion
  378. # TODO: Enable when false positives are fixed
  379. # disable warning IDISP003: Dispose previous before re-assigning
  380. dotnet_diagnostic.IDISP003.severity = suggestion
  381. # disable warning IDISP004: Don't ignore created IDisposable
  382. dotnet_diagnostic.IDISP004.severity = suggestion
  383. # disable warning IDISP007: Don't dispose injected
  384. dotnet_diagnostic.IDISP007.severity = suggestion
  385. # disable warning IDISP008: Don't assign member with injected and created disposables
  386. dotnet_diagnostic.IDISP008.severity = suggestion
  387. [tests/**.{cs,vb}]
  388. # disable warning SA0001: XML comment analysis is disabled due to project configuration
  389. dotnet_diagnostic.SA0001.severity = none
  390. # disable warning CA1707: Identifiers should not contain underscores
  391. dotnet_diagnostic.CA1707.severity = none
  392. # disable warning CA2007: Consider calling ConfigureAwait on the awaited task
  393. dotnet_diagnostic.CA2007.severity = none
  394. # disable warning CA2234: Pass system uri objects instead of strings
  395. dotnet_diagnostic.CA2234.severity = suggestion
  396. # disable warning xUnit1028: Test methods must have a supported return type.
  397. dotnet_diagnostic.xUnit1028.severity = none
  398. # CA1826: Do not use Enumerable methods on indexable collections
  399. dotnet_diagnostic.CA1826.severity = suggestion