| File: Diagnostic\VisualBasicDiagnosticDescriptors.vb | Web Access |
| Project: src\winforms\src\System.Windows.Forms.Analyzers.VisualBasic\src\System.Windows.Forms.Analyzers.VisualBasic.vbproj (System.Windows.Forms.Analyzers.VisualBasic) |
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. Imports System.Windows.Forms.Analyzers.Diagnostics Imports System.Windows.Forms.Analyzers.VisualBasic.Resources Imports Microsoft.CodeAnalysis Friend Module VisualBasicDiagnosticDescriptors ' WFO1000 Public ReadOnly s_missingPropertySerializationConfiguration As DiagnosticDescriptor = DiagnosticDescriptorHelper.Create( id:=DiagnosticIDs.MissingPropertySerializationConfiguration, title:=New LocalizableResourceString(NameOf(SR.WFO1000AnalyzerTitle), SR.ResourceManager, GetType(SR)), messageFormat:=New LocalizableResourceString(NameOf(SR.WFO1000AnalyzerMessageFormat), SR.ResourceManager, GetType(SR)), category:=DiagnosticCategories.WinFormsSecurity, defaultSeverity:=DiagnosticSeverity.Error, isEnabledByDefault:=True, description:=New LocalizableResourceString(NameOf(SR.WFO1000AnalyzerDescription), SR.ResourceManager, GetType(SR))) ' WFO1001 Public ReadOnly s_implementITypedDataObjectInAdditionToIDataObject As DiagnosticDescriptor = DiagnosticDescriptorHelper.Create( id:=DiagnosticIDs.ImplementITypedDataObject, title:=New LocalizableResourceString(NameOf(SR.WFO1001AnalyzerTitle), SR.ResourceManager, GetType(SR)), messageFormat:=New LocalizableResourceString(NameOf(SR.WFO1001AnalyzerMessageFormat), SR.ResourceManager, GetType(SR)), category:=DiagnosticCategories.WinFormsSecurity, defaultSeverity:=DiagnosticSeverity.Warning, isEnabledByDefault:=True, description:=New LocalizableResourceString(NameOf(SR.WFO1001AnalyzerDescription), SR.ResourceManager, GetType(SR))) ' WFO2001 Public ReadOnly s_avoidFuncReturningTaskWithoutCancellationToken As DiagnosticDescriptor = DiagnosticDescriptorHelper.Create( id:=DiagnosticIDs.AvoidPassingFuncReturningTaskWithoutCancellationToken, title:=New LocalizableResourceString(NameOf(SR.WFO2001AnalyzerTitle), SR.ResourceManager, GetType(SR)), messageFormat:=New LocalizableResourceString(NameOf(SR.WFO2001AnalyzerMessageFormat), SR.ResourceManager, GetType(SR)), category:=DiagnosticCategories.WinFormsSecurity, defaultSeverity:=DiagnosticSeverity.Warning, isEnabledByDefault:=True, description:=New LocalizableResourceString(NameOf(SR.WFO2001AnalyzerDescription), SR.ResourceManager, GetType(SR))) End Module