Skip to content

DiagnosticIds

NexusLabs.Needlr.Analyzers

NexusLabs.Needlr.Analyzers

DiagnosticIds Class

Contains diagnostic IDs for all Needlr core analyzers.

public static class DiagnosticIds

Inheritance System.Object 🡒 DiagnosticIds

Remarks

Core analyzer codes use the NDLRCOR prefix.

Fields

DiagnosticIds.CircularDependency Field

NDLRCOR006: Circular dependency detected in service registration.

public const string CircularDependency = "NDLRCOR006";

Field Value

System.String

DiagnosticIds.CollectionResolutionEmpty Field

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

public const string CollectionResolutionEmpty = "NDLRCOR010";

Field Value

System.String

DiagnosticIds.DeferToContainerInGeneratedCode Field

NDLRCOR003: DeferToContainer attribute in generated code.

public const string DeferToContainerInGeneratedCode = "NDLRCOR003";

Field Value

System.String

DiagnosticIds.DisposableCaptiveDependency Field

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

public const string DisposableCaptiveDependency = "NDLRCOR012";

Field Value

System.String

DiagnosticIds.DoNotAutoRegisterOnPluginClass Field

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

public const string DoNotAutoRegisterOnPluginClass = "NDLRCOR016";

Field Value

System.String

DiagnosticIds.GlobalNamespaceTypeNotDiscovered Field

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

public const string GlobalNamespaceTypeNotDiscovered = "NDLRCOR004";

Field Value

System.String

DiagnosticIds.InterceptOnClassWithoutInterfaces Field

NDLRCOR008: [Intercept] applied to class without interfaces.

public const string InterceptOnClassWithoutInterfaces = "NDLRCOR008";

Field Value

System.String

DiagnosticIds.InterceptTypeMustImplementInterface Field

NDLRCOR007: Intercept attribute type must implement IMethodInterceptor.

public const string InterceptTypeMustImplementInterface = "NDLRCOR007";

Field Value

System.String

DiagnosticIds.KeyedServiceUnknownKey Field

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

public const string KeyedServiceUnknownKey = "NDLRCOR011";

Field Value

System.String

DiagnosticIds.LazyResolutionUnknown Field

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

public const string LazyResolutionUnknown = "NDLRCOR009";

Field Value

System.String

DiagnosticIds.LifetimeMismatch Field

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

public const string LifetimeMismatch = "NDLRCOR005";

Field Value

System.String

DiagnosticIds.PluginHasConstructorDependencies Field

NDLRCOR002: Plugin has constructor dependencies.

public const string PluginHasConstructorDependencies = "NDLRCOR002";

Field Value

System.String

DiagnosticIds.ReflectionInAotProject Field

NDLRCOR001: Reflection API used in AOT project.

public const string ReflectionInAotProject = "NDLRCOR001";

Field Value

System.String

DiagnosticIds.RegisterAsTypeArgNotImplemented Field

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

public const string RegisterAsTypeArgNotImplemented = "NDLRCOR015";

Field Value

System.String