@@ -17,6 +17,11 @@ charset = utf-8
17
17
# Generated code
18
18
[* {_AssemblyInfo.cs,.notsupported.cs,AsmOffsets.cs} ]
19
19
generated_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
20
25
21
26
# C# files
22
27
[* .cs ]
@@ -56,15 +61,15 @@ dotnet_style_predefined_type_for_member_access = true:suggestion
56
61
# name all constant fields using PascalCase
57
62
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
58
63
dotnet_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
60
65
dotnet_naming_symbols.constant_fields.applicable_kinds = field
61
66
dotnet_naming_symbols.constant_fields.required_modifiers = const
62
67
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
63
68
64
69
# static fields should have s_ prefix
65
70
dotnet_naming_rule.static_fields_should_have_prefix.severity = suggestion
66
71
dotnet_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
68
73
dotnet_naming_symbols.static_fields.applicable_kinds = field
69
74
dotnet_naming_symbols.static_fields.required_modifiers = static
70
75
dotnet_naming_symbols.static_fields.applicable_accessibilities = private, internal, private_protected
@@ -74,7 +79,7 @@ dotnet_naming_style.static_prefix_style.capitalization = camel_case
74
79
# internal and private fields should be _camelCase
75
80
dotnet_naming_rule.camel_case_for_private_internal_fields.severity = suggestion
76
81
dotnet_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
78
83
dotnet_naming_symbols.private_internal_fields.applicable_kinds = field
79
84
dotnet_naming_symbols.private_internal_fields.applicable_accessibilities = private, internal
80
85
dotnet_naming_style.camel_case_underscore_style.required_prefix = _
@@ -157,8 +162,19 @@ csharp_space_between_square_brackets = false
157
162
dotnet_diagnostic.IDE0073.severity = error
158
163
# License header
159
164
file_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
160
172
161
173
# C++ Files
174
+
175
+ # xUnit1006: Theory methods should have parameters
176
+ dotnet_diagnostic.xUnit1006.severity = error
177
+
162
178
[* .{cpp,h,in} ]
163
179
curly_bracket_next_line = true
164
180
indent_brace_style = Allman
0 commit comments