Angular Modernizer
    Preparing search index...

    Result of the scan-all tool.

    interface ScanAllResult {
        cache?: {
            filesFromCache: number;
            filesToProcess: number;
            hitRate: number;
            hitsBySource: Record<string, number>;
            stats: {
                entriesByType: { analysis: number; ast: number };
                hitRate: number;
                hits: number;
                misses: number;
                totalEntries: number;
                totalSize: number;
            };
            totalFilesChecked: number;
        };
        counts: ScanCounts;
        execution?: CancelledExecution;
        metadata: {
            cacheStats?: {
                filesFromCache: number;
                filesToProcess: number;
                hitRate: number;
                hitsBySource: Record<string, number>;
                totalFilesChecked: number;
            };
            duration: number;
            projectRoot: string;
            rulesExecuted: string[];
        };
        orchestration?: {
            cacheHitRate: number;
            duration: number;
            filesAnalyzed: number;
            filesSkipped: number;
            incremental: boolean;
            parallel: boolean;
            throughput: number;
        };
        pagination?: {
            hasMore: boolean;
            offset: number;
            returnedResults: number;
            totalResults: number;
        };
        summary: string;
        violations: {
            category: string;
            column?: number;
            filePath: string;
            id: string;
            line?: number;
            message: string;
            metadata?: Record<string, unknown>;
            ruleId: string;
            severity: "info" | "error" | "warning";
            suggestedFix?: string;
        }[];
    }
    Index

    Properties

    cache?: {
        filesFromCache: number;
        filesToProcess: number;
        hitRate: number;
        hitsBySource: Record<string, number>;
        stats: {
            entriesByType: { analysis: number; ast: number };
            hitRate: number;
            hits: number;
            misses: number;
            totalEntries: number;
            totalSize: number;
        };
        totalFilesChecked: number;
    }

    Cache figures of this run. scan-all reads and writes only its own cache (.angular-modernizer-cache/all/); hitRate and hitsBySource refer to it.

    Type Declaration

    • filesFromCache: number

      Files whose findings came from the cache.

    • filesToProcess: number

      Files analyzed in this run.

    • hitRate: number

      Hit rate of the scan-all cache in percent.

    • hitsBySource: Record<string, number>

      Cache hits per cache source.

    • stats: {
          entriesByType: { analysis: number; ast: number };
          hitRate: number;
          hits: number;
          misses: number;
          totalEntries: number;
          totalSize: number;
      }

      Statistics of the cache manager.

      • entriesByType: { analysis: number; ast: number }

        Entries per entry type.

        • analysis: number

          Analysis result entries.

        • ast: number

          AST entries.

      • hitRate: number

        Hit rate in percent.

      • hits: number

        Cache hits.

      • misses: number

        Cache misses.

      • totalEntries: number

        Entries in the cache.

      • totalSize: number

        Size of the cache in bytes.

    • totalFilesChecked: number

      Files selected for the scan.

    counts: ScanCounts

    Counts over all violations, independent of the page.

    execution?: CancelledExecution

    Set when the client cancelled the scan; counts cover the analyzed files.

    metadata: {
        cacheStats?: {
            filesFromCache: number;
            filesToProcess: number;
            hitRate: number;
            hitsBySource: Record<string, number>;
            totalFilesChecked: number;
        };
        duration: number;
        projectRoot: string;
        rulesExecuted: string[];
    }

    Scan metadata.

    Type Declaration

    • OptionalcacheStats?: {
          filesFromCache: number;
          filesToProcess: number;
          hitRate: number;
          hitsBySource: Record<string, number>;
          totalFilesChecked: number;
      }

      Cache figures of this run; same values as ScanAllResult.cache.

      • filesFromCache: number

        Files whose findings came from the cache.

      • filesToProcess: number

        Files analyzed in this run.

      • hitRate: number

        Hit rate of the scan-all cache in percent.

      • hitsBySource: Record<string, number>

        Cache hits per cache source.

      • totalFilesChecked: number

        Files selected for the scan.

    • duration: number

      Duration of the scan in milliseconds.

    • projectRoot: string

      Root path of the scanned project.

    • rulesExecuted: string[]

      Ids of the rules that ran.

    orchestration?: {
        cacheHitRate: number;
        duration: number;
        filesAnalyzed: number;
        filesSkipped: number;
        incremental: boolean;
        parallel: boolean;
        throughput: number;
    }

    Orchestration figures; set only when orchestration.useWorkerThreads is set.

    Type Declaration

    • cacheHitRate: number

      Hit rate of the cache in percent.

    • duration: number

      Duration of the scan in milliseconds.

    • filesAnalyzed: number

      Files selected for the scan.

    • filesSkipped: number

      Files skipped (always 0 here).

    • incremental: boolean

      Whether only changed files were analyzed (always false here).

    • parallel: boolean

      Whether the scan ran in parallel.

    • throughput: number

      Files per second.

    pagination?: {
        hasMore: boolean;
        offset: number;
        returnedResults: number;
        totalResults: number;
    }

    What the page covers of all violations.

    Type Declaration

    • hasMore: boolean

      Whether violations follow after this page.

    • offset: number

      Offset of the page (resultOffset).

    • returnedResults: number

      Number of violations in this page.

    • totalResults: number

      Number of all violations.

    summary: string

    Human-readable summary for LLM consumption.

    violations: {
        category: string;
        column?: number;
        filePath: string;
        id: string;
        line?: number;
        message: string;
        metadata?: Record<string, unknown>;
        ruleId: string;
        severity: "info" | "error" | "warning";
        suggestedFix?: string;
    }[]

    The requested page of violations (maxResults, resultOffset).

    Type Declaration

    • category: string

      Rule category; General when the rule sets none.

    • Optionalcolumn?: number

      Column of the finding, when the rule reports one.

    • filePath: string

      File path relative to rootPath.

    • id: string

      Position-based id of the violation in the full result (all-<index>).

    • Optionalline?: number

      1-based line of the finding, when the rule reports one.

    • message: string

      Rule message.

    • Optionalmetadata?: Record<string, unknown>

      Rule-specific details.

    • ruleId: string

      Rule that reported the violation, e.g. solid:circular-dependency.

    • severity: "info" | "error" | "warning"

      Severity reported by the rule.

    • OptionalsuggestedFix?: string

      Fix suggested by the rule; only with includeAutoFixes.