@@ -17,6 +17,11 @@ charset = utf-8
1717# Generated code
1818[* {_AssemblyInfo.cs,.notsupported.cs,AsmOffsets.cs} ]
1919generated_code = true
20+ dotnet_style_operator_placement_when_wrapping = beginning_of_line
21+ tab_width = 4
22+ dotnet_style_coalesce_expression = true :suggestion
23+ dotnet_style_null_propagation = true :suggestion
24+ dotnet_style_prefer_is_null_check_over_reference_equality_method = true :suggestion
2025
2126# C# files
2227[* .cs ]
@@ -56,15 +61,15 @@ dotnet_style_predefined_type_for_member_access = true:suggestion
5661# name all constant fields using PascalCase
5762dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
5863dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
59- dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
64+ dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
6065dotnet_naming_symbols.constant_fields.applicable_kinds = field
6166dotnet_naming_symbols.constant_fields.required_modifiers = const
6267dotnet_naming_style.pascal_case_style.capitalization = pascal_case
6368
6469# static fields should have s_ prefix
6570dotnet_naming_rule.static_fields_should_have_prefix.severity = suggestion
6671dotnet_naming_rule.static_fields_should_have_prefix.symbols = static_fields
67- dotnet_naming_rule.static_fields_should_have_prefix.style = static_prefix_style
72+ dotnet_naming_rule.static_fields_should_have_prefix.style = static_prefix_style
6873dotnet_naming_symbols.static_fields.applicable_kinds = field
6974dotnet_naming_symbols.static_fields.required_modifiers = static
7075dotnet_naming_symbols.static_fields.applicable_accessibilities = private, internal, private_protected
@@ -74,7 +79,7 @@ dotnet_naming_style.static_prefix_style.capitalization = camel_case
7479# internal and private fields should be _camelCase
7580dotnet_naming_rule.camel_case_for_private_internal_fields.severity = suggestion
7681dotnet_naming_rule.camel_case_for_private_internal_fields.symbols = private_internal_fields
77- dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_underscore_style
82+ dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_underscore_style
7883dotnet_naming_symbols.private_internal_fields.applicable_kinds = field
7984dotnet_naming_symbols.private_internal_fields.applicable_accessibilities = private, internal
8085dotnet_naming_style.camel_case_underscore_style.required_prefix = _
@@ -157,8 +162,19 @@ csharp_space_between_square_brackets = false
157162dotnet_diagnostic.IDE0073.severity = error
158163# License header
159164file_header_template = Licensed to the .NET Foundation under one or more agreements.\nThe .NET Foundation licenses this file to you under the MIT license.
165+ csharp_style_namespace_declarations = block_scoped:silent
166+ csharp_style_prefer_method_group_conversion = true :silent
167+ csharp_style_prefer_top_level_statements = true :silent
168+ csharp_style_prefer_primary_constructors = true :suggestion
169+
170+ # IDE0060: Remove unused parameter
171+ dotnet_diagnostic.IDE0060.severity = error
160172
161173# C++ Files
174+
175+ # xUnit1006: Theory methods should have parameters
176+ dotnet_diagnostic.xUnit1006.severity = error
177+
162178[* .{cpp,h,in} ]
163179curly_bracket_next_line = true
164180indent_brace_style = Allman
0 commit comments