gate-empty-scan
Rung gates · correctness · default error
What it catches
Section titled “What it catches”A gate, or one of its checks, scanned no items, or sweep ran with no gates configured: a clean result that read nothing proves nothing.
A gate that scans nothing passes. This is the failure mode behind most false confidence: a check pointed at the wrong directory, or reading a file list that came back empty, reports zero findings and looks healthy. Gantry refuses a clean result that read nothing, for the gate as a whole and for each check inside it. A count of zero or less is an empty scan. A sweep of a project with no gates configured checked nothing either, so it fails the same way, on gates in gantry.yaml.
Make the gate read what it is meant to read. If a check truly has nothing to scan in this project, remove it from the gate’s declared checks. If the project has no gates yet, configure one under gates in gantry.yaml before running gantry sweep.
Example
Section titled “Example”{"gate": "chrome", "checks": [{"id": "pattern-has-row", "scanned": 0}]}This fails with gate-empty-scan.