-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
329 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
using Microsoft.CodeAnalysis; | ||
|
||
namespace Equatable.SourceGenerator; | ||
|
||
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", | ||
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>", | ||
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>", | ||
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>", | ||
category: "Usage", | ||
defaultSeverity: DiagnosticSeverity.Warning, | ||
isEnabledByDefault: true | ||
); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.