@@ -4,7 +4,7 @@ namespace Equatable.SourceGenerator;
44
55internal static class DiagnosticDescriptors
66{
7- public static DiagnosticDescriptor MissingDictionaryEqualityAttribute => new (
7+ public static readonly DiagnosticDescriptor MissingDictionaryEqualityAttribute = new (
88 id : "EQ0001" ,
99 title : "Missing DictionaryEquality Attribute" ,
1010 messageFormat : "Property '{0}' type implements IDictionary<TKey, TValue> but does not have the [DictionaryEquality] attribute" ,
@@ -13,7 +13,7 @@ internal static class DiagnosticDescriptors
1313 isEnabledByDefault : true
1414 ) ;
1515
16- public static DiagnosticDescriptor MissingSequenceEqualityAttribute => new (
16+ public static readonly DiagnosticDescriptor MissingSequenceEqualityAttribute = new (
1717 id : "EQ0002" ,
1818 title : "Missing SequenceEquality or HashSetEquality Attribute" ,
1919 messageFormat : "Property '{0}' type implements IEnumerable<T> but does not have the [SequenceEquality] or [HashSetEquality] attribute" ,
@@ -22,37 +22,37 @@ internal static class DiagnosticDescriptors
2222 isEnabledByDefault : true
2323 ) ;
2424
25- public static DiagnosticDescriptor InvalidStringEqualityAttributeUsage => new (
25+ public static readonly DiagnosticDescriptor InvalidStringEqualityAttributeUsage = new (
2626 id : "EQ0010" ,
2727 title : "Invalid StringEquality Attribute Usage" ,
28- messageFormat : "Invalid StringEquality attribute usage for property '{0}'. Property type is not a string" ,
28+ messageFormat : "Invalid StringEquality attribute usage for property '{0}'. Property type is not a string. " ,
2929 category : "Usage" ,
3030 defaultSeverity : DiagnosticSeverity . Warning ,
3131 isEnabledByDefault : true
3232 ) ;
3333
34- public static DiagnosticDescriptor InvalidDictionaryEqualityAttributeUsage => new (
34+ public static readonly DiagnosticDescriptor InvalidDictionaryEqualityAttributeUsage = new (
3535 id : "EQ0011" ,
3636 title : "Invalid DictionaryEquality Attribute Usage" ,
37- messageFormat : "Invalid DictionaryEquality attribute usage for property '{0}'. Property type does not implement IDictionary<TKey, TValue>" ,
37+ messageFormat : "Invalid DictionaryEquality attribute usage for property '{0}'. Property type does not implement IDictionary<TKey, TValue>. " ,
3838 category : "Usage" ,
3939 defaultSeverity : DiagnosticSeverity . Warning ,
4040 isEnabledByDefault : true
4141 ) ;
4242
43- public static DiagnosticDescriptor InvalidHashSetEqualityAttributeUsage => new (
43+ public static readonly DiagnosticDescriptor InvalidHashSetEqualityAttributeUsage = new (
4444 id : "EQ0012" ,
4545 title : "Invalid HashSetEquality Attribute Usage" ,
46- messageFormat : "Invalid HashSetEquality attribute usage for property '{0}'. Property type does not implement IEnumerable<T>" ,
46+ messageFormat : "Invalid HashSetEquality attribute usage for property '{0}'. Property type does not implement IEnumerable<T>. " ,
4747 category : "Usage" ,
4848 defaultSeverity : DiagnosticSeverity . Warning ,
4949 isEnabledByDefault : true
5050 ) ;
5151
52- public static DiagnosticDescriptor InvalidSequenceEqualityAttributeUsage => new (
52+ public static readonly DiagnosticDescriptor InvalidSequenceEqualityAttributeUsage = new (
5353 id : "EQ0013" ,
5454 title : "Invalid SequenceEquality Attribute Usage" ,
55- messageFormat : "Invalid SequenceEquality attribute usage for property '{0}'. Property type does not implement IEnumerable<T>" ,
55+ messageFormat : "Invalid SequenceEquality attribute usage for property '{0}'. Property type does not implement IEnumerable<T>. " ,
5656 category : "Usage" ,
5757 defaultSeverity : DiagnosticSeverity . Warning ,
5858 isEnabledByDefault : true
0 commit comments