IF Commons GitHub

governance/checks

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0002-repoctl-governance FR-006

The checks of repoctl check that are not generators, declared in a repository's configuration as data (commons repoctl 0002-repoctl-governance FR-006; 0009-repoctl-config FR-003): a named program that judges the repository, the sentence that names it and the problem code a finding of it is reported with. The checks of the generated files are the generators' own (generators.ts).

import type { Check } from "./checks.ts";
const c: Pick<Check, "code"> = { code: "E-CHECK-FAILED" };
c.code; // "E-CHECK-FAILED"

Source: commons/repoctl/src/governance/checks.ts

0 of 2 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

governance.Checktypeno test imports it
type Check = {
  readonly id: StepId;
  readonly summary: string;
  readonly run: Step;
  readonly code: ProblemCode;
};

A check: the program (or typed function), the code of its findings. It ends with 0 where nothing is wrong, with 1 where something is, and its lines are the findings.

Checktypeno test imports it
type Check = {
  readonly id: StepId;
  readonly summary: string;
  readonly run: Step;
  readonly code: ProblemCode;
};

A check: the program (or typed function), the code of its findings. It ends with 0 where nothing is wrong, with 1 where something is, and its lines are the findings.

Titles, headings, exports, tables, columns and requirements. Esc closes.