| | | 1 | | using Microsoft.CodeAnalysis; |
| | | 2 | | |
| | | 3 | | namespace Hertzole.ScriptableValues.Generator; |
| | | 4 | | |
| | | 5 | | internal static class DiagnosticRules |
| | | 6 | | { |
| | 0 | 7 | | private static readonly LocalizableResourceString noCallbackImplementationTitle = new LocalizableResourceString( |
| | 0 | 8 | | nameof(Resources.HSV0001Title), Resources.ResourceManager, typeof(Resources)); |
| | 0 | 9 | | private static readonly LocalizableResourceString noCallbackImplementationMessage = new LocalizableResourceString( |
| | 0 | 10 | | nameof(Resources.HSV0001MessageFormat), Resources.ResourceManager, typeof(Resources)); |
| | | 11 | | |
| | 0 | 12 | | private static readonly LocalizableResourceString noMarkerAttributeTiler = new LocalizableResourceString( |
| | 0 | 13 | | nameof(Resources.HSV0002Title), Resources.ResourceManager, typeof(Resources)); |
| | 0 | 14 | | private static readonly LocalizableResourceString noMarkerAttributeMessage = new LocalizableResourceString( |
| | 0 | 15 | | nameof(Resources.HSV0002Message), Resources.ResourceManager, typeof(Resources)); |
| | | 16 | | |
| | 0 | 17 | | private static readonly LocalizableResourceString typeNotSupportedForCallbackAttributeTitle = new LocalizableResourc |
| | 0 | 18 | | nameof(Resources.HSV0100Title), Resources.ResourceManager, typeof(Resources)); |
| | 0 | 19 | | private static readonly LocalizableResourceString typeNotSupportedForCallbackAttributeMessage = new LocalizableResou |
| | 0 | 20 | | nameof(Resources.HSV0100MessageFormat), Resources.ResourceManager, typeof(Resources)); |
| | | 21 | | |
| | 0 | 22 | | private static readonly LocalizableResourceString typeNotSupportedTitle = new LocalizableResourceString( |
| | 0 | 23 | | nameof(Resources.HSV0101Title), Resources.ResourceManager, typeof(Resources)); |
| | 0 | 24 | | private static readonly LocalizableResourceString typeNotSupportedMessage = new LocalizableResourceString( |
| | 0 | 25 | | nameof(Resources.HSV0101MessageFormat), Resources.ResourceManager, typeof(Resources)); |
| | | 26 | | |
| | 0 | 27 | | private static readonly LocalizableResourceString incorrectAttributeUsageTitle = new LocalizableResourceString( |
| | 0 | 28 | | nameof(Resources.HSV0102Title), Resources.ResourceManager, typeof(Resources)); |
| | 0 | 29 | | private static readonly LocalizableResourceString incorrectAttributeUsageMessage = new LocalizableResourceString( |
| | 0 | 30 | | nameof(Resources.HSV0102MessageFormat), Resources.ResourceManager, typeof(Resources)); |
| | | 31 | | |
| | 0 | 32 | | public static readonly DiagnosticDescriptor NoCallbackImplementation = new DiagnosticDescriptor( |
| | 0 | 33 | | DiagnosticIdentifiers.NoCallbackImplementation, |
| | 0 | 34 | | noCallbackImplementationTitle, |
| | 0 | 35 | | noCallbackImplementationMessage, |
| | 0 | 36 | | DiagnosticCategories.Usage, |
| | 0 | 37 | | DiagnosticSeverity.Error, |
| | 0 | 38 | | true); |
| | | 39 | | |
| | 0 | 40 | | public static readonly DiagnosticDescriptor NoMarkerAttribute = new DiagnosticDescriptor( |
| | 0 | 41 | | DiagnosticIdentifiers.NoMarkerAttribute, |
| | 0 | 42 | | noMarkerAttributeTiler, |
| | 0 | 43 | | noMarkerAttributeMessage, |
| | 0 | 44 | | DiagnosticCategories.Usage, |
| | 0 | 45 | | DiagnosticSeverity.Warning, |
| | 0 | 46 | | true); |
| | | 47 | | |
| | 0 | 48 | | public static readonly DiagnosticDescriptor TypeNotSupportedForCallbackAttribute = new DiagnosticDescriptor( |
| | 0 | 49 | | DiagnosticIdentifiers.TypeNotSupportedForCallbackAttribute, |
| | 0 | 50 | | typeNotSupportedForCallbackAttributeTitle, |
| | 0 | 51 | | typeNotSupportedForCallbackAttributeMessage, |
| | 0 | 52 | | DiagnosticCategories.Usage, |
| | 0 | 53 | | DiagnosticSeverity.Error, |
| | 0 | 54 | | true); |
| | | 55 | | |
| | 0 | 56 | | public static readonly DiagnosticDescriptor TypeNotSupported = new DiagnosticDescriptor( |
| | 0 | 57 | | DiagnosticIdentifiers.TypeNotSupported, |
| | 0 | 58 | | typeNotSupportedTitle, |
| | 0 | 59 | | typeNotSupportedMessage, |
| | 0 | 60 | | DiagnosticCategories.Usage, |
| | 0 | 61 | | DiagnosticSeverity.Error, |
| | 0 | 62 | | true); |
| | | 63 | | |
| | 0 | 64 | | public static readonly DiagnosticDescriptor IncorrectAttributeUsage = new DiagnosticDescriptor( |
| | 0 | 65 | | DiagnosticIdentifiers.IncorrectAttributeUsage, |
| | 0 | 66 | | incorrectAttributeUsageTitle, |
| | 0 | 67 | | incorrectAttributeUsageMessage, |
| | 0 | 68 | | DiagnosticCategories.Usage, |
| | 0 | 69 | | DiagnosticSeverity.Error, |
| | 0 | 70 | | true); |
| | | 71 | | } |