Skip to content

DiagnosticDescriptors

NexusLabs.Needlr.Analyzers

NexusLabs.Needlr.Analyzers

DiagnosticDescriptors Class

Contains diagnostic descriptors for all Needlr analyzers.

public static class DiagnosticDescriptors

Inheritance System.Object 🡒 DiagnosticDescriptors

Fields

DiagnosticDescriptors.CircularDependency Field

NDLRCOR006: Circular dependency detected in service registration.

public static readonly DiagnosticDescriptor CircularDependency;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

DiagnosticDescriptors.CollectionResolutionEmpty Field

NDLRCOR010: IEnumerable\<T> has no implementations discovered.

public static readonly DiagnosticDescriptor CollectionResolutionEmpty;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

DiagnosticDescriptors.DeferToContainerInGeneratedCode Field

NDLRCOR003: DeferToContainer attribute in generated code.

public static readonly DiagnosticDescriptor DeferToContainerInGeneratedCode;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

DiagnosticDescriptors.DisposableCaptiveDependency Field

NDLRCOR012: Disposable captive dependency - longer-lived service holds IDisposable with shorter lifetime.

public static readonly DiagnosticDescriptor DisposableCaptiveDependency;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

DiagnosticDescriptors.DoNotAutoRegisterOnPluginClass Field

NDLRCOR016: [DoNotAutoRegister] applied directly to a plugin class is redundant.

public static readonly DiagnosticDescriptor DoNotAutoRegisterOnPluginClass;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

DiagnosticDescriptors.GlobalNamespaceTypeNotDiscovered Field

NDLRCOR004: Injectable type in global namespace may not be discovered.

public static readonly DiagnosticDescriptor GlobalNamespaceTypeNotDiscovered;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

DiagnosticDescriptors.InterceptOnClassWithoutInterfaces Field

NDLRCOR008: [Intercept] applied to class without interfaces.

public static readonly DiagnosticDescriptor InterceptOnClassWithoutInterfaces;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

DiagnosticDescriptors.InterceptTypeMustImplementInterface Field

NDLRCOR007: Intercept attribute type must implement IMethodInterceptor.

public static readonly DiagnosticDescriptor InterceptTypeMustImplementInterface;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

DiagnosticDescriptors.KeyedServiceUnknownKey Field

NDLRCOR011: [FromKeyedServices] references a key with no known registration.

public static readonly DiagnosticDescriptor KeyedServiceUnknownKey;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

DiagnosticDescriptors.LazyResolutionUnknown Field

NDLRCOR009: Lazy\<T> references type not discovered by source generation.

public static readonly DiagnosticDescriptor LazyResolutionUnknown;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

DiagnosticDescriptors.LifetimeMismatch Field

NDLRCOR005: Lifetime mismatch - longer-lived service depends on shorter-lived service.

public static readonly DiagnosticDescriptor LifetimeMismatch;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

DiagnosticDescriptors.PluginHasConstructorDependencies Field

NDLRCOR002: Plugin has constructor dependencies.

public static readonly DiagnosticDescriptor PluginHasConstructorDependencies;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

DiagnosticDescriptors.ReflectionInAotProject Field

NDLRCOR001: Reflection API used in AOT project.

public static readonly DiagnosticDescriptor ReflectionInAotProject;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

DiagnosticDescriptors.RegisterAsTypeArgNotImplemented Field

NDLRCOR015: [RegisterAs\<T>] type argument must be an interface implemented by the class.

public static readonly DiagnosticDescriptor RegisterAsTypeArgNotImplemented;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor