Skip to content

Commit dd716c4

Browse files
Merge branch 'microsoft:main' into main
2 parents 11129a9 + fb79330 commit dd716c4

185 files changed

Lines changed: 216508 additions & 111036 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,20 @@ insert_final_newline = true
1111
indent_style = space
1212
indent_size = 4
1313
trim_trailing_whitespace = true
14+
dotnet_style_coalesce_expression = true:suggestion
15+
dotnet_style_null_propagation = true:suggestion
16+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
17+
dotnet_style_prefer_auto_properties = true:suggestion
18+
dotnet_style_object_initializer = true:suggestion
19+
dotnet_style_collection_initializer = true:suggestion
20+
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
21+
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
22+
dotnet_style_prefer_conditional_expression_over_return = true:silent
23+
dotnet_style_explicit_tuple_names = true:suggestion
24+
dotnet_style_operator_placement_when_wrapping = beginning_of_line
25+
tab_width = 4
26+
end_of_line = crlf
27+
dotnet_style_prefer_inferred_tuple_names = true:suggestion
1428

1529
[project.json]
1630
indent_size = 2
@@ -53,15 +67,15 @@ dotnet_style_predefined_type_for_member_access = true:suggestion
5367
# name all constant fields using PascalCase
5468
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
5569
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
56-
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
70+
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
5771
dotnet_naming_symbols.constant_fields.applicable_kinds = field
5872
dotnet_naming_symbols.constant_fields.required_modifiers = const
5973
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
6074

6175
# static fields should have s_ prefix
6276
dotnet_naming_rule.static_fields_should_have_prefix.severity = suggestion
6377
dotnet_naming_rule.static_fields_should_have_prefix.symbols = static_fields
64-
dotnet_naming_rule.static_fields_should_have_prefix.style = static_prefix_style
78+
dotnet_naming_rule.static_fields_should_have_prefix.style = static_prefix_style
6579
dotnet_naming_symbols.static_fields.applicable_kinds = field
6680
dotnet_naming_symbols.static_fields.required_modifiers = static
6781
dotnet_naming_symbols.static_fields.applicable_accessibilities = private, internal, private_protected
@@ -71,7 +85,7 @@ dotnet_naming_style.static_prefix_style.capitalization = camel_case
7185
# internal and private fields should be _camelCase
7286
dotnet_naming_rule.camel_case_for_private_internal_fields.severity = suggestion
7387
dotnet_naming_rule.camel_case_for_private_internal_fields.symbols = private_internal_fields
74-
dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_underscore_style
88+
dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_underscore_style
7589
dotnet_naming_symbols.private_internal_fields.applicable_kinds = field
7690
dotnet_naming_symbols.private_internal_fields.applicable_accessibilities = private, internal
7791
dotnet_naming_style.camel_case_underscore_style.required_prefix = _
@@ -80,7 +94,7 @@ dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case
8094
# Code style defaults
8195
csharp_using_directive_placement = outside_namespace:suggestion
8296
dotnet_sort_system_directives_first = true
83-
csharp_prefer_braces = true:refactoring
97+
csharp_prefer_braces = true:silent
8498
csharp_preserve_single_line_blocks = true:none
8599
csharp_preserve_single_line_statements = false:none
86100
csharp_prefer_static_local_function = true:suggestion
@@ -106,14 +120,14 @@ dotnet_style_prefer_conditional_expression_over_return = true:refactoring
106120
csharp_prefer_simple_default_expression = true:suggestion
107121

108122
# Expression-bodied members
109-
csharp_style_expression_bodied_methods = true:refactoring
110-
csharp_style_expression_bodied_constructors = true:refactoring
111-
csharp_style_expression_bodied_operators = true:refactoring
112-
csharp_style_expression_bodied_properties = true:refactoring
113-
csharp_style_expression_bodied_indexers = true:refactoring
114-
csharp_style_expression_bodied_accessors = true:refactoring
115-
csharp_style_expression_bodied_lambdas = true:refactoring
116-
csharp_style_expression_bodied_local_functions = true:refactoring
123+
csharp_style_expression_bodied_methods = true:silent
124+
csharp_style_expression_bodied_constructors = true:silent
125+
csharp_style_expression_bodied_operators = true:silent
126+
csharp_style_expression_bodied_properties = true:silent
127+
csharp_style_expression_bodied_indexers = true:silent
128+
csharp_style_expression_bodied_accessors = true:silent
129+
csharp_style_expression_bodied_lambdas = true:silent
130+
csharp_style_expression_bodied_local_functions = true:silent
117131

118132
# Pattern matching
119133
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
@@ -155,6 +169,10 @@ csharp_space_between_square_brackets = false
155169

156170
# Analyzers
157171
dotnet_code_quality.ca1802.api_surface = private, internal
172+
csharp_style_namespace_declarations = block_scoped:silent
173+
csharp_style_prefer_method_group_conversion = true:silent
174+
csharp_style_prefer_top_level_statements = true:silent
175+
csharp_style_allow_embedded_statements_on_same_line_experimental = true:silent
158176

159177
# C++ Files
160178
[*.{cpp,h,in}]

0 commit comments

Comments
 (0)