[*.cs] # Default severity for all analyzer diagnostics dotnet_analyzer_diagnostic.severity = warning # IDE0290: Use primary constructor csharp_style_prefer_primary_constructors = false # Default severity for analyzer diagnostics with category 'Naming' dotnet_analyzer_diagnostic.category-Naming.severity = none # IDE0160: Convert to block scoped namespace csharp_style_namespace_declarations = file_scoped # CA1051: Do not declare visible instance fields dotnet_diagnostic.CA1051.severity = none # CS8618: Non-nullable field must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring as nullable. dotnet_diagnostic.CS8618.severity = none