UNPKG

@codechecks/client

Version:

Open source platform for code review automation

17 lines (16 loc) 672 B
export declare function executeCodechecksJson(path: string, checkNameMapper?: CheckNameMapper): Promise<void>; export declare function loadJson(path: string): any; export declare function executeCodechecksJsonString(json: CodechecksJson, checkNameMapper: CheckNameMapper): Promise<void>; export interface CodechecksJson { checks: { name: string; options?: any; }[]; } export declare type CheckNameMapper = (name: string) => string; /** * Maps "check" name to node_module dependency. * 1. Check if @codechecks/CHECK_NAME exists * 2. Check CHECK_NAME */ export declare const standardNameMapper: (path: string) => (checkName: string) => string;