Skip to content

DiagnosticDescriptors

NexusLabs.Needlr.Logging.Analyzers

DiagnosticDescriptors Class

Diagnostic descriptors for logging-specific Needlr analyzers.

public static class DiagnosticDescriptors

Inheritance System.Object 🡒 DiagnosticDescriptors

Fields

DiagnosticDescriptors.ContainingTypeMustBePartial Field

NDLRLOG004: the type containing a [NeedlrLoggerMessage] method must be partial.

public static readonly DiagnosticDescriptor ContainingTypeMustBePartial;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

DiagnosticDescriptors.LoggerNotFound Field

NDLRLOG005: a [NeedlrLoggerMessage] method has no accessible ILogger.

public static readonly DiagnosticDescriptor LoggerNotFound;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

DiagnosticDescriptors.MustBePartial Field

NDLRLOG001: a [NeedlrLoggerMessage] method must be partial.

public static readonly DiagnosticDescriptor MustBePartial;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

DiagnosticDescriptors.MustNotBeGeneric Field

NDLRLOG003: a [NeedlrLoggerMessage] method must not be generic.

public static readonly DiagnosticDescriptor MustNotBeGeneric;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

DiagnosticDescriptors.MustReturnVoid Field

NDLRLOG002: a [NeedlrLoggerMessage] method must return void.

public static readonly DiagnosticDescriptor MustReturnVoid;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

DiagnosticDescriptors.TooManyParameters Field

NDLRLOG006: a [NeedlrLoggerMessage] method has more than six non-exception parameters.

public static readonly DiagnosticDescriptor TooManyParameters;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor