ShtukbaseStandard
包文件→ .shtukbase/packages/design-components/lib/report.ts

lib/report.ts

5 行, 236 B.

文件按包中的原样显示:代码及其注释不做翻译。

  1. // The shape of every check of this package: findings one per line, exit code 1 when there are any.
  2. export function report(out: string[]): void {
  3. if (out.length) console.log(out.join('\n'));
  4. process.exitCode = out.length ? 1 : 0;
  5. }