parent
9b57adfab0
commit
6dbee180e9
|
@ -36,7 +36,7 @@ dotnet_diagnostic.BHI1120.severity = silent
|
|||
|
||||
# Check result of IDictionary.TryGetValue, or discard it if default(T) is desired
|
||||
dotnet_diagnostic.BHI1200.severity = error
|
||||
# Inferred type of bramches of ternary expression in interpolation don't match
|
||||
# Inferred type of branches of ternary expression in interpolation don't match
|
||||
dotnet_diagnostic.BHI1210.severity = error
|
||||
|
||||
# Call to FirstOrDefault when elements are of a value type; FirstOrNull may have been intended
|
||||
|
|
|
@ -11,8 +11,7 @@ public sealed class TernaryInferredTypeMismatchAnalyzer : DiagnosticAnalyzer
|
|||
{
|
||||
private static readonly DiagnosticDescriptor DiagTernaryInferredTypeMismatch = new(
|
||||
id: "BHI1210",
|
||||
title: "Inferred type of bramches of ternary expression in interpolation don't match",
|
||||
// messageFormat: "Inferred type of ternary expression is object (missing ToString call?)",
|
||||
title: "Inferred type of branches of ternary expression in interpolation don't match",
|
||||
messageFormat: "{0}",
|
||||
category: "Usage",
|
||||
defaultSeverity: DiagnosticSeverity.Warning,
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue