# Checks

> The checks you can run by name, and the ones that advise.

Canonical: https://vawe.dev/docs/quality-gates

A gate is a script in `quality/gates/`. Run one by name:

```bash
bin/vawe check                              # list the gates
bin/vawe check anim-traps films/<name>/page.html
```

There are 20 gate names (19 distinct gates, because `provenance` and `threshold-provenance` run one script): `anim-traps`, `code-quality`, `coverage`, `dead-branch`, `doc-refs`, `ideas`, `links`, `no-emdash`, `page-check`, `provenance`, `review`, `rule-length`, `seo-pseo`, `seo-surface`, `site-build-check`, `site-typography`, `skill-reach`, `slideshow`, `threshold-provenance` and `transitions`.

Checks advise. A broken determinism rule, a banned item and a waiver reason that does not count refuse. A rule broken for cause is declared in the page. See [Waivers](https://vawe.dev/docs/waivers).

Green checks do not mean the film is good. Look at the frames. See [Critique and fix](https://vawe.dev/docs/critique).

## Gates for a film

**`anim-traps`** finds the traps of a seeked CSS or Web Animation that never throw an error. They are fill collisions, a missing end keyframe, `var()` in the `animation` shorthand, and a selector that matches nothing. They also include a delay past the end, one easing across three or more keyframes, and a later animation that overrides an earlier one. The gate also searches the source for a live clock and an unseeded `Math.random`. It reports. `--strict` turns a finding into a failing exit code. See [When it looks wrong](https://vawe.dev/docs/troubleshooting).

**`page-check`** measures what a rendered page film shows, so your eye judges only what a number cannot. The exit code is always 0. Findings include:

* `dead-stop`: a fast move that stops within one frame
* `text-unreadable-hold`: words that leave before they were still long enough to read
* `quiet-before-spectacle`: the 0.4 s before `<meta name="spectacle">` is not quiet
* `cue-not-heard`, `cue-onset-drift`, `sound-off-hit`: audio cues that do not land
* `cut-off-beat`, `cut-off-reference`: a cut early or late against the beat grid or the reference
* `text-low-contrast`, `text-clipped`, `font-fallback`: text that is hard to read or in the wrong face
* `loop-seam`: with `<meta name="loop" content="true">`, the last frame does not flow into the first

`bin/vawe critique <page>` runs it.

**`no-emdash`** scans for an em dash, which the project never allows.

**`review`** gives one report and one picture sheet of what to fix in a page film, worst first.

**`coverage`** compares your render with a reference film, step by step, with SSIM. It prints the worst moments and exits 1 when a second falls below `--min`. See [Match a reference film](https://vawe.dev/docs/match-a-reference).

**`ideas`** reads the Ideas table of the brief and reports a beat with no row, a literal pick or a repeated device. It reads the plan, not the film. It advises.

**`transitions`** checks that the film does the handoffs its Board planned. It names a cut with no planned handoff and a planned handoff that measures as a hard cut. It advises.

**`slideshow`** scores out of 10 how much the film reads as a slideshow, and names each tell with its seconds and its fix. It advises.

## Gates for the repo

`code-quality`, `dead-branch`, `doc-refs`, `links`, `rule-length`, `seo-pseo`, `seo-surface`, `site-build-check`, `site-typography`, `skill-reach`, `provenance` and `threshold-provenance` check the repository or the site, not a film. A film author does not need them. `links` crawls the site and exits 1 when a link is broken.
