Angular Modernizer
    Preparing search index...

    Library Extraction Opportunity Rule (architecture:library-extraction-opportunity).

    Scans the project for cohesive artifact groups in shared folders that qualify for extraction into dedicated Angular libraries with secondary entry points. All detection logic lives in LibraryExtractionScanner.

    The scan covers the whole project but the rule is called per file: it scans once per project and file count, and reports each opportunity only once (at its primary file).

    const rule = new LibraryExtractionAnalysisRule({
    minReusabilityScore: 70,
    targetFolders: ['shared', 'common'],
    categoryOverrides: { ButtonComponent: LibraryCategory.UI },
    });
    const results = await rule.analyze(context);
    // results[i] is a LibraryExtractionOpportunity with suggestedLibraryName, artifacts, etc.

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    category: "architecture" = 'architecture'

    Rule category for grouping.

    description: "Detects cohesive artifact groups in shared folders that should be extracted into dedicated Angular libraries" = 'Detects cohesive artifact groups in shared folders that should be extracted into dedicated Angular libraries'

    Rule description explaining what it checks.

    id: "architecture:library-extraction-opportunity" = 'architecture:library-extraction-opportunity'

    Unique rule identifier (scoped to plugin). Format: "plugin-name:rule-name" (e.g., "angular-standalone:component-not-standalone")

    name: "Library Extraction Opportunity" = 'Library Extraction Opportunity'

    Human-readable rule name.

    severity: "warning" = ...

    Rule severity level.

    tags: string[] = ...

    Tags for filtering and search.

    Methods