UNPKG

@codechecks/client

Version:

Open source platform for code review automation

16 lines 646 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const yaml = require("js-yaml"); const executeJson_1 = require("./executeJson"); const fs_1 = require("fs"); async function executeCodechecksYaml(path, checkNameMapper = executeJson_1.standardNameMapper(path)) { const json = loadYaml(path); return executeJson_1.executeCodechecksJsonString(json, checkNameMapper); } exports.executeCodechecksYaml = executeCodechecksYaml; function loadYaml(path) { const yamlString = fs_1.readFileSync(path, "utf8"); return yaml.safeLoad(yamlString); } exports.loadYaml = loadYaml; //# sourceMappingURL=executeYaml.js.map