root = true [*] charset = utf-8 indent_style = space indent_size = 4 insert_final_newline = true trim_trailing_whitespace = true [*.{json,yml,yaml,xml,props,targets,csproj,slnx}] indent_size = 2 [*.md] trim_trailing_whitespace = false [*.cs] csharp_style_namespace_declarations = file_scoped:warning csharp_style_var_for_built_in_types = true:silent csharp_style_var_when_type_is_apparent = true:silent csharp_style_var_elsewhere = true:silent csharp_prefer_braces = when_multiline:silent dotnet_sort_system_directives_first = true csharp_using_directive_placement = outside_namespace:warning dotnet_style_qualification_for_field = false:warning dotnet_style_qualification_for_property = false:warning dotnet_style_qualification_for_method = false:warning # Tests: literal arrays in assertions read better than static fields. [tests/**.cs] dotnet_diagnostic.CA1861.severity = none