Interface PrettierCheckResult

interface PrettierCheckResult {
    cacheFiles?: {
        [filepath: string]: {
            deleted?: Record<string, unknown>;
            type?: "cache" | "whitelist";
            updated: AnyObject;
        };
    };
    cacheHits?: number;
    errmsg?: string;
    errorCount?: number;
    failedFiles?: string[];
    failedFilesNum?: number;
    fixedFileList?: string[];
    isPassed: boolean;
    passedFilesNum?: number;
    startTime?: number;
    totalFilesNum?: number;
}

Hierarchy (view full)

Properties

cacheFiles?: {
    [filepath: string]: {
        deleted?: Record<string, unknown>;
        type?: "cache" | "whitelist";
        updated: AnyObject;
    };
}

缓存文件与对应的缓存信息。放在最后汇总并写入文件

cacheHits?: number

缓存命中的数量

errmsg?: string

错误信息。如可回调给告警类任务

errorCount?: number

异常信息数(一个文件可能包含多个异常)

failedFiles?: string[]
failedFilesNum?: number

失败的文件数

fixedFileList?: string[]
isPassed: boolean

是否检测通过

passedFilesNum?: number

检测通过的文件数

startTime?: number

开始处理时间

totalFilesNum?: number

处理的(源)文件总数