MCPcopy
hub / github.com/google-labs-code/design.md / run

Function run

packages/cli/src/commands/lint.ts:36–47  ·  view source on GitHub ↗
({ args })

Source from the content-addressed store, hash-verified

34 },
35 },
36 async run({ args }) {
37 const content = await readInput(args.file);
38 const report = lint(content);
39
40 const output = {
41 findings: report.findings,
42 summary: report.summary,
43 };
44
45 console.log(formatOutput(output, args));
46 process.exitCode = report.summary.errors > 0 ? 1 : 0;
47 },
48});

Callers

nothing calls this directly

Calls 3

readInputFunction · 0.85
lintFunction · 0.85
formatOutputFunction · 0.85

Tested by

no test coverage detected