lint
Check Open Knowledge Format bundles against OKF v0.2, report spec and hygiene findings with fixes, and limit results to new or changed files for CI.
Instructions
Check the bundle against OKF v0.2. Run it before and after any change, and in CI.
Each finding: kind; scope (okf = the spec, house = hygiene); severity (error fails, warning does not); file;
message; fix (what to do); fixable (true: fix clears it). conformant: §11 holds for what was linted
(frontmatter parses, type set, index.md and log.md well formed). ok: no errors in scope. scope: all |
okf | house. baseline: path of a baseline snapshot; only new findings count. since: a git ref; only
files changed since its merge base with HEAD count (committed, staged, unstaged or untracked), for PRs.
Each finding names its bundle and its file within it (§2). all=true: this directory and every bundle
in it, with a summary per bundle. Without bundle=, it lints where the user is: the bundle around the
working directory and everything in it (at the knowledgebase root, everything). file / files: only those
files or directories (paths within bundle=), each checked within its own bundle. limit=0 returns every
finding.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | ||
| file | No | ||
| files | No | ||
| limit | No | ||
| scope | No | all | |
| since | No | ||
| bundle | No | ||
| offset | No | ||
| baseline | No |