CRAP | Complexity | Coverage | Location |
---|---|---|---|
2.00 | 1 | 0/4 (0.00%) | crap/file-system.service.ts (L58 - L64) |
public async writeJsonReport(path: string, report: CrapReport): Promise<void> {
const data: CrapReportJsonObject = mapValues(report, (crapFile) =>
mapValues(crapFile, (crapFunction) => omit(crapFunction, ["sourceCode"])),
);
await this.writeFile({ path, type: "JSON report", data: JSON.stringify(data), options: { logLevel: "log" } });
}