Angular Modernizer
    Preparing search index...

    Per-file metrics the scanner computes for a candidate artifact; input of LibraryExtractionScanner.calculateReusabilityScore and LibraryExtractionScanner.calculateCohesionScore.

    interface ArtifactMetrics {
        categorization: CategorizationResult;
        category: LibraryCategory;
        crossModuleUsageCount: number;
        dependencyCount: number;
        filePath: string;
        hasTestFile: boolean;
        isDataOnly?: boolean;
        isPubliclyExported: boolean;
        sourceFile: SourceFile;
    }
    Index

    Properties

    categorization: CategorizationResult

    Full categorization result.

    category: LibraryCategory

    Category assigned to the artifact.

    crossModuleUsageCount: number

    Number of other source files importing this artifact.

    dependencyCount: number

    Number of external imports in this file.

    filePath: string

    Absolute path of the artifact file.

    hasTestFile: boolean

    Whether this artifact has a corresponding *.spec.ts file.

    isDataOnly?: boolean

    Whether the file only exports interfaces, type aliases, enums or consts (no classes, no functions). Defaults to false when omitted.

    isPubliclyExported: boolean

    Whether this artifact is re-exported from a barrel (index.ts).

    sourceFile: SourceFile

    Source file of the artifact.