root = true [*] charset = utf-8 end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true indent_style = space indent_size = 2 [*.{cs,csproj,props,targets,slnx}] indent_size = 4 [*.cs] dotnet_sort_system_directives_first = true dotnet_separate_import_directive_groups = false csharp_new_line_before_open_brace = all csharp_style_namespace_declarations = file_scoped:suggestion csharp_style_var_for_built_in_types = false:suggestion csharp_style_var_when_type_is_apparent = true:suggestion csharp_style_var_elsewhere = false:suggestion # EF Core migrations are machine-generated by `dotnet ef migrations add` and should not # be hand-edited to satisfy analyzer style preferences; the generator's shape is the # source of truth here, not our usual code-quality rules. [**/Persistence/Migrations/*.cs] dotnet_diagnostic.CA1861.severity = none dotnet_diagnostic.CA1852.severity = none [*.md] trim_trailing_whitespace = false [*.ps1] indent_size = 4 end_of_line = crlf