logical.Sectiontypeno test imports ittype Section = { readonly id: string; readonly title: string; readonly findings: readonly Finding[] };One check and what it found.
repoctl check (commons repoctl 0003-repoctl-sync FR-007, FR-008): every check of the repository in one report. A section is one check (a generator's, the specification kit of commons, the rules of Mizan, the versions, the specification kit of each library, the constants that say a version) with its findings, each a code of the closed union that repoctl explain explains and the command that fixes it. Nothing is written.
import { sectionOk } from "./check.ts";
sectionOk({ id: "specs", title: "The specification kit of commons", findings: [] }); // truelogical.Sectiontypeno test imports ittype Section = { readonly id: string; readonly title: string; readonly findings: readonly Finding[] };One check and what it found.
logical.CheckReporttypeno test imports ittype CheckReport = { readonly sections: readonly Section[] };Every section, in the order they are reported.
logical.sectionOkfunctionno test imports itfunction sectionOk(s: Section): booleanWhether a section found nothing that fails.
logical.reportOkfunctionno test imports itfunction reportOk(r: CheckReport): booleanWhether a whole report found nothing that fails.
logical.findingsOfProgramfunctionno test imports itfunction findingsOfProgram(run: Run, code: ProblemCode, fix: string): readonly Finding[]What a check program's end is as findings: none where it ended with 0, one for each line it said where it ended with 1, and a warning that it did not run for any other status.
logical.runCheckfunctionno test imports itfunction runCheck(w: World, config: Pick<Config, "checks" | "generators" | "libraries">): Promise<CheckReport>Runs every check of the configuration: the generators', its named checks, and, where it has libraries, the specification kit of each and the constants that say a version.
Sectiontypeno test imports ittype Section = { readonly id: string; readonly title: string; readonly findings: readonly Finding[] };One check and what it found.
CheckReporttypeno test imports ittype CheckReport = { readonly sections: readonly Section[] };Every section, in the order they are reported.
sectionOkfunctionfunction sectionOk(s: Section): booleanWhether a section found nothing that fails.
reportOkfunctionfunction reportOk(r: CheckReport): booleanWhether a whole report found nothing that fails.
findingsOfProgramfunctionfunction findingsOfProgram(run: Run, code: ProblemCode, fix: string): readonly Finding[]What a check program's end is as findings: none where it ended with 0, one for each line it said where it ended with 1, and a warning that it did not run for any other status.
runCheckfunctionno test imports itfunction runCheck(w: World, config: Pick<Config, "checks" | "generators" | "libraries">): Promise<CheckReport>Runs every check of the configuration: the generators', its named checks, and, where it has libraries, the specification kit of each and the constants that say a version.