Documentation
¶
Overview ¶
Package samplecheck holds sample files of the eval protocol to the protocol's rules by spec's own code, its recipe sample-check: the runner refuses a sample by the same code as sample-check. The recipe runs from the repository's root, with the spec submodule there, in the toolchain of the devcontainer: Node and buf. A repository other than spec writes no check of its own.
Index ¶
Constants ¶
const Justfile = "spec/justfile"
Justfile is spec's justfile from the repository's root, where its recipe sample-check is.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
Parse reads what sample-check printed: the lines of each of the files that it names as breaking a rule, ascending and each once. A line naming another file is not read.
Types ¶
type Check ¶
Check holds the files, by their paths from the working directory or absolute within it, to the rules, and gives the lines of each file that breaks one, ascending: the places sample-check names, and no message, which could quote a part of a sheet. A file it gives none of keeps every rule. The error is a check that could not run: no spec submodule, no just, a path it refuses, or buf failing.