Skip to content

Commit a7cb058

Browse files
Copilotbcollamore
andcommitted
Fix dogfood build pipeline errors by disabling PH2146 analyzer in editorconfig
Co-authored-by: bcollamore <57269455+bcollamore@users.noreply.github.com>
1 parent d900363 commit a7cb058

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ dotnet_diagnostic.CS7035.severity = none
112112
# We do not need compile-time generated RegExs in Unit Tests. We'll prefer code readability.
113113
dotnet_diagnostic.SYSLIB1045.severity = none
114114

115+
# Disable PH2146 analyzer in dogfood builds as it's meant to suggest improvements for test code
116+
dotnet_diagnostic.PH2146.severity = none
117+
115118
dotnet_diagnostic.IDE0001.severity = error
116119
dotnet_diagnostic.IDE0002.severity = error
117120
dotnet_diagnostic.IDE0003.severity = error

Philips.CodeAnalysis.MaintainabilityAnalyzers/Maintainability/AvoidStringFormatInInterpolatedStringAnalyzer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// © 2024 Koninklijke Philips N.V. See License.md in the project root for license information.
1+
// © 2024 Koninklijke Philips N.V. See License.md in the project root for license information.
22

33
using Microsoft.CodeAnalysis;
44
using Microsoft.CodeAnalysis.CSharp.Syntax;
@@ -51,4 +51,4 @@ private bool ContainsStringFormatCall(ExpressionSyntax expression)
5151
return false;
5252
}
5353
}
54-
}
54+
}

Philips.CodeAnalysis.MsTestAnalyzers/TestShouldUseDisplayNameAnalyzer.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ private string ExtractCommentText(string commentTrivia)
136136
return string.Empty;
137137
}
138138

139-
// Temporarily disable filtering to debug
140139
return text;
141140
}
142141
}

0 commit comments

Comments
 (0)