Skip to content

Commit f913924

Browse files
authored
Add dotnet_style_prefer_collection_expression to .editorconfig (PowerShell#25126)
1 parent 6661f6f commit f913924

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.editorconfig

+2
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case
103103
# Suggest more modern language features when available
104104
dotnet_style_object_initializer = true:suggestion
105105
dotnet_style_collection_initializer = true:suggestion
106+
# Background Info: https://github.com/dotnet/runtime/pull/100250
107+
dotnet_style_prefer_collection_expression = when_types_exactly_match
106108
dotnet_style_coalesce_expression = true:suggestion
107109
dotnet_style_null_propagation = true:suggestion
108110
dotnet_style_explicit_tuple_names = true:suggestion

build.psm1

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Licensed under the MIT License.
33

44
param(
5-
# Skips a check that prevents building PowerShell on unsupported Linux distributions
5+
# Skips a check that prevents building PowerShell on unsupported Linux distributions.
66
[parameter(Mandatory = $false)][switch]$SkipLinuxDistroCheck = $false
77
)
88

0 commit comments

Comments
 (0)