Skip to content

Commit

Permalink
Update DiagnosticDescriptors.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
pwelter34 committed Sep 5, 2024
1 parent 23e37c5 commit ab9074a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Equatable.SourceGenerator/DiagnosticDescriptors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,35 @@ internal static class DiagnosticDescriptors
{
public static DiagnosticDescriptor InvalidStringEqualityAttributeUsage => new(
id: "EQ0010",
title: "Invalid String Equality Attribute Usage",
messageFormat: "Invalid String equality attribute usage for property {0}. Property return type is not a string",
title: "Invalid StringEquality Attribute Usage",
messageFormat: "Invalid StringEquality attribute usage for property {0}. Property type is not a string",
category: "Usage",
defaultSeverity: DiagnosticSeverity.Warning,
isEnabledByDefault: true
);

public static DiagnosticDescriptor InvalidDictionaryEqualityAttributeUsage => new(
id: "EQ0011",
title: "Invalid Dictionary Equality Attribute Usage",
messageFormat: "Invalid Dictionary equality attribute usage for property {0}. Property return type does not implement IDictionary<TKey, TValue>",
title: "Invalid DictionaryEquality Attribute Usage",
messageFormat: "Invalid DictionaryEquality attribute usage for property {0}. Property type does not implement IDictionary<TKey, TValue>",
category: "Usage",
defaultSeverity: DiagnosticSeverity.Warning,
isEnabledByDefault: true
);

public static DiagnosticDescriptor InvalidHashSetEqualityAttributeUsage => new(
id: "EQ0012",
title: "Invalid HashSet Equality Attribute Usage",
messageFormat: "Invalid HashSet equality attribute usage for property {0}. Property return type does not implement IEnumerable<T>",
title: "Invalid HashSetEquality Attribute Usage",
messageFormat: "Invalid HashSetEquality attribute usage for property {0}. Property type does not implement IEnumerable<T>",
category: "Usage",
defaultSeverity: DiagnosticSeverity.Warning,
isEnabledByDefault: true
);

public static DiagnosticDescriptor InvalidSequenceEqualityAttributeUsage => new(
id: "EQ0013",
title: "Invalid Sequence Equality Attribute Usage",
messageFormat: "Invalid Sequence equality attribute usage for property {0}. Property return type does not implement IEnumerable<T>",
title: "Invalid SequenceEquality Attribute Usage",
messageFormat: "Invalid SequenceEquality attribute usage for property {0}. Property type does not implement IEnumerable<T>",
category: "Usage",
defaultSeverity: DiagnosticSeverity.Warning,
isEnabledByDefault: true
Expand Down

0 comments on commit ab9074a

Please sign in to comment.