You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Thinktecture.Runtime.Extensions.SourceGenerator/CodeAnalysis/DiagnosticsDescriptors.cs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -21,13 +21,13 @@ internal static class DiagnosticsDescriptors
21
21
publicstaticreadonlyDiagnosticDescriptorInnerEnumOnFirstLevelMustBePrivate=new("TTRESG014","First-level inner enumerations must be private","Derived inner enumeration '{0}' on first-level must be private",nameof(ThinktectureRuntimeExtensionsAnalyzer),DiagnosticSeverity.Error,true);
22
22
publicstaticreadonlyDiagnosticDescriptorInnerEnumOnNonFirstLevelMustBePublic=new("TTRESG015","Non-first-level inner enumerations must be public","Derived inner enumeration '{0}' on non-first-level must be public",nameof(ThinktectureRuntimeExtensionsAnalyzer),DiagnosticSeverity.Error,true);
23
23
publicstaticreadonlyDiagnosticDescriptorTypeCannotBeNestedClass=new("TTRESG016","The type cannot be a nested class","The type '{0}' cannot be a nested class",nameof(ThinktectureRuntimeExtensionsAnalyzer),DiagnosticSeverity.Error,true);
24
-
publicstaticreadonlyDiagnosticDescriptorKeyMemberShouldNotBeNullable=new("TTRESG017","The key member should not be nullable","The key member '{0}' should not be nullable",nameof(ThinktectureRuntimeExtensionsAnalyzer),DiagnosticSeverity.Error,true);
24
+
publicstaticreadonlyDiagnosticDescriptorKeyMemberShouldNotBeNullable=new("TTRESG017","The key member must not be nullable","The key member '{0}' must not be nullable",nameof(ThinktectureRuntimeExtensionsAnalyzer),DiagnosticSeverity.Error,true);
25
25
publicstaticreadonlyDiagnosticDescriptorKeyComparerMustBeStaticFieldOrProperty=new("TTRESG030","The key comparer must a static field or property","The key comparer '{0}' must be a static field or property",nameof(ThinktectureRuntimeExtensionsAnalyzer),DiagnosticSeverity.Error,true);
26
26
publicstaticreadonlyDiagnosticDescriptorComparerApplicableOnKeyMemberOnly=new("TTRESG031","A comparer is applicable on a key member only","A comparer like '{0}' is applicable on a key member only",nameof(ThinktectureRuntimeExtensionsAnalyzer),DiagnosticSeverity.Error,true);
27
27
publicstaticreadonlyDiagnosticDescriptorEnumsAndValueObjectsMustNotBeGeneric=new("TTRESG033","Enumerations and value objects must not be generic","{0} '{1}' must not be generic",nameof(ThinktectureRuntimeExtensionsAnalyzer),DiagnosticSeverity.Error,true);
28
28
publicstaticreadonlyDiagnosticDescriptorBaseClassFieldMustBeReadOnly=new("TTRESG034","Field of the base class must be read-only","The field '{0}' of the base class '{1}' must be read-only",nameof(ThinktectureRuntimeExtensionsAnalyzer),DiagnosticSeverity.Error,true);
29
29
publicstaticreadonlyDiagnosticDescriptorBaseClassPropertyMustBeReadOnly=new("TTRESG035","Property of the base class must be read-only","The property '{0}' of the base class '{1}' must be read-only",nameof(ThinktectureRuntimeExtensionsAnalyzer),DiagnosticSeverity.Error,true);
30
-
publicstaticreadonlyDiagnosticDescriptorEnumKeyShouldNotBeNullable=new("TTRESG036","The key should not be nullable","The generic type T of IEnum<T> and IValidatableEnum<T> should not be nullable",nameof(ThinktectureRuntimeExtensionsAnalyzer),DiagnosticSeverity.Error,true);
30
+
publicstaticreadonlyDiagnosticDescriptorEnumKeyShouldNotBeNullable=new("TTRESG036","The key must not be nullable","The generic type T of IEnum<T> and IValidatableEnum<T> must not be nullable",nameof(ThinktectureRuntimeExtensionsAnalyzer),DiagnosticSeverity.Error,true);
31
31
publicstaticreadonlyDiagnosticDescriptorEnumWithoutDerivedTypesMustBeSealed=new("TTRESG037","Enumeration without derived types must be sealed","Enumeration '{0}' without derived types must be sealed",nameof(ThinktectureRuntimeExtensionsAnalyzer),DiagnosticSeverity.Error,true);
32
32
publicstaticreadonlyDiagnosticDescriptorValueObjectMustBeSealed=new("TTRESG038","Value objects must be sealed","Value object '{0}' must be sealed",nameof(ThinktectureRuntimeExtensionsAnalyzer),DiagnosticSeverity.Error,true);
0 commit comments