Angular Modernizer
    Preparing search index...

    A detected library extraction opportunity (extends AnalysisResult).

    interface LibraryExtractionOpportunity {
        artifacts: string[];
        candidateKind?: CandidateKind;
        category: LibraryCategory;
        circularDependencies: string[];
        cohesionScore: number;
        column?: number;
        dependencies: string[];
        estimatedEffort: EffortEstimate;
        filePath: string;
        line?: number;
        message: string;
        metadata?: Record<string, unknown>;
        migrationComplexity: MigrationComplexity;
        reusabilityScore: number;
        ruleId: "architecture:library-extraction-opportunity";
        secondaryEntryPoints: string[];
        severity?: "error" | "warning" | "info";
        suggestedFix?: string;
        suggestedLibraryName: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    artifacts: string[]

    File paths of artifacts belonging to this library.

    candidateKind?: CandidateKind

    Candidate kind. data-only: every artifact only exports interfaces, type aliases, enums or consts (a model / contract foundation library).

    category: LibraryCategory

    Artifact category.

    circularDependencies: string[]

    Circular dependency blockers.

    cohesionScore: number

    Cohesion score of the artifact cluster (0-1).

    column?: number

    Column number (0-indexed) where the issue starts.

    dependencies: string[]

    External dependencies of this library.

    estimatedEffort: EffortEstimate

    Estimated effort.

    filePath: string

    File path where the issue was found.

    line?: number

    Line number (1-indexed) where the issue starts.

    message: string

    Result message for display.

    metadata?: Record<string, unknown>

    Additional metadata.

    migrationComplexity: MigrationComplexity

    Migration complexity estimate.

    reusabilityScore: number

    Reusability score (0-100).

    ruleId: "architecture:library-extraction-opportunity"

    Rule that produced this result.

    secondaryEntryPoints: string[]

    Suggested secondary entry point names.

    severity?: "error" | "warning" | "info"

    Severity of this finding when it differs from the rule severity (e.g. an informational hint from a rule whose findings are errors).

    suggestedFix?: string

    Suggested fix (if applicable).

    suggestedLibraryName: string

    Suggested library name (e.g., 'ui', 'forms', 'utils').