Gå til hovedinnhold

Check content like tests

Goal: verify content before it ships — over-long strings, forbidden phrases, brand drift, structural faults — with a repeatable gate: structured findings, a pass/fail, and an exit code. kapi check never modifies content; fixing flagged blocks is kapi apply's job. For the Report model and every check family, see Checks.

Open your project and switch to the Checks view.

  1. Run the checkset. Kapi runs the project's bound rules — hygiene, length, patterns, and brand vocabulary when a profile is bound — over the tracked content.
  2. Read the findings. Each finding names its rule, severity, and the exact block; click through to see the flagged text in context.
  3. Fix and re-run. Edit the source, re-run, and watch the findings clear. The same gate result the CLI reports is what the panel shows.
ScreenshotPending capture

The Checks view: a findings list grouped by rule and severity, with a block-level detail pane and the pass/fail gate summary.

View scene script ↗

In a project: the ship gate

Inside a .kapi project, kapi check with no file arguments checks the project's declared content with the recipe's bound rules. kapi check --ship is the project gate mode: it runs the bound quality gates (brand, terminology, QA) plus the ship/source coverage gates over the project's content, and exits non-zero when any gate is unmet — the pre-release bar. Ordinary builds never fail on target drift; --ship is the explicit enforcement point. See Ship gates & CI.

The two are different bars, not variants of one: a bare kapi check <files> gates the files you name (a checkset over content — the test runner), while --ship gates the project against its ship_gates: coverage thresholds across every target language (the release bar).

Next