root = true [*] charset = utf-8 insert_final_newline = true trim_trailing_whitespace = true indent_style = space [*.{csproj,props,targets,slnx,xml}] indent_size = 2 [*.json] indent_size = 4 [**/Migrations/**.cs] generated_code = true [*.cs] indent_size = 4 csharp_style_namespace_declarations = file_scoped:warning csharp_using_directive_placement = outside_namespace:warning dotnet_sort_system_directives_first = true dotnet_separate_import_directive_groups = false dotnet_diagnostic.IDE0005.severity = warning dotnet_style_require_accessibility_modifiers = always:warning csharp_style_var_for_built_in_types = true:suggestion csharp_style_var_when_type_is_apparent = true:suggestion csharp_style_var_elsewhere = true:suggestion csharp_prefer_braces = when_multiline:warning csharp_style_prefer_primary_constructors = true:suggestion csharp_style_expression_bodied_methods = when_on_single_line:suggestion dotnet_style_prefer_collection_expression = when_types_loosely_match:suggestion dotnet_naming_rule.private_fields.symbols = private_fields dotnet_naming_rule.private_fields.style = camel_case dotnet_naming_rule.private_fields.severity = warning dotnet_naming_symbols.private_fields.applicable_kinds = field dotnet_naming_symbols.private_fields.applicable_accessibilities = private dotnet_naming_symbols.private_fields.required_modifiers = dotnet_naming_style.camel_case.capitalization = camel_case dotnet_naming_rule.private_constants.symbols = private_constants dotnet_naming_rule.private_constants.style = pascal_case dotnet_naming_rule.private_constants.severity = warning dotnet_naming_symbols.private_constants.applicable_kinds = field dotnet_naming_symbols.private_constants.required_modifiers = const dotnet_naming_style.pascal_case.capitalization = pascal_case # Analyzer rules that would need behaviour or API changes; downgraded in P0, revisit in P15. dotnet_diagnostic.CA1848.severity = suggestion dotnet_diagnostic.CA1873.severity = suggestion dotnet_diagnostic.CA1305.severity = suggestion dotnet_diagnostic.CA1707.severity = suggestion dotnet_diagnostic.CA1859.severity = suggestion dotnet_diagnostic.CA1716.severity = suggestion dotnet_diagnostic.CA1000.severity = suggestion dotnet_diagnostic.CA1725.severity = suggestion dotnet_diagnostic.CA1816.severity = suggestion dotnet_diagnostic.CA1822.severity = suggestion dotnet_diagnostic.CA1852.severity = suggestion dotnet_diagnostic.CA1068.severity = suggestion dotnet_diagnostic.CA1711.severity = suggestion dotnet_diagnostic.CA1861.severity = suggestion