Skip to content

Commit e53907e

Browse files
authored
Add dotnet_diagnostic.CA1859.severity = suggestion to editorconfig (PowerShell#25143)
1 parent 14f8003 commit e53907e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.editorconfig

+7
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,13 @@ csharp_prefer_simple_default_expression = true:suggestion
119119

120120
dotnet_code_quality_unused_parameters = non_public:suggestion
121121

122+
# Dotnet diagnostic settings:
123+
[*.cs]
124+
125+
# CA1859: Use concrete types when possible for improved performance
126+
# https://learn.microsoft.com/en-gb/dotnet/fundamentals/code-analysis/quality-rules/ca1859
127+
dotnet_diagnostic.CA1859.severity = suggestion
128+
122129
# CSharp code style settings:
123130
[*.cs]
124131

build.psm1

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ param(
1111
# CI runs with PowerShell 5.0, so don't use features like ?: && ||
1212
Set-StrictMode -Version 3.0
1313

14-
# On Unix paths is separated by colon
14+
# On Unix paths is separated by colon.
1515
# On Windows paths is separated by semicolon
1616
$script:TestModulePathSeparator = [System.IO.Path]::PathSeparator
1717
$script:Options = $null

0 commit comments

Comments
 (0)