logical.Leveltypeno test imports ittype Level = "fail" | "warn";How serious a finding is: a failure fails the run, a warning does not.
What a verb finds, as values (commons repoctl 0002-repoctl-governance FR-004): a finding has a level, a code of the closed union, a sentence that names its subject, and the command that fixes it. The Physical layer turns a finding into Headless' problem; nothing here knows how it is drawn.
import { finding } from "./findings.ts";
finding("fail", "E-STALE-GENERATED", "readme: README.md is stale", "bun commons/libraries/src/readme.ts").code; // "E-STALE-GENERATED"logical.Leveltypeno test imports ittype Level = "fail" | "warn";How serious a finding is: a failure fails the run, a warning does not.
logical.Findingtypeno test imports ittype Finding = { readonly level: Level; readonly code: ProblemCode; readonly message: string; readonly fix: string };A finding: its level, its code, what is wrong and what to run.
logical.findingfunctionno test imports itfunction finding(level: Level, code: ProblemCode, message: string, fix: string): FindingA finding of the given level and code.
logical.tailLinesfunctionno test imports itfunction tailLines(text: string, n: number): readonly string[]The lines of a program's output that say something, without the blank ones and trimmed, at most n of them from the end.
Leveltypeno test imports ittype Level = "fail" | "warn";How serious a finding is: a failure fails the run, a warning does not.
Findingtypeno test imports ittype Finding = { readonly level: Level; readonly code: ProblemCode; readonly message: string; readonly fix: string };A finding: its level, its code, what is wrong and what to run.
findingfunctionno test imports itfunction finding(level: Level, code: ProblemCode, message: string, fix: string): FindingA finding of the given level and code.
tailLinesfunctionfunction tailLines(text: string, n: number): readonly string[]The lines of a program's output that say something, without the blank ones and trimmed, at most n of them from the end.