rules
Synopsis
Section titled “Synopsis”gapline rules list [--severity LEVEL] [--format FORMAT] [-o PATH]Description
Section titled “Description”rules list enumerates every validation rule compiled into the current gapline build. Use it to find a rule ID for --disable-rule, audit which rules apply at each severity, or export the catalogue for a compliance report.
Sub-commands
Section titled “Sub-commands”| Command | Purpose |
|---|---|
list | Print the registered rules. |
Options (rules list)
Section titled “Options (rules list)”| Flag | Short | Value | Description |
|---|---|---|---|
--severity | LEVEL | Restrict the listing to rules of this severity: error, warning, or info. | |
--format | FORMAT | Output format: text, json, csv, xml, html. Defaults to text. | |
--output | -o | PATH | Write the listing to this path instead of stdout. |
Global flags are listed on reference/global-flags.
Examples
Section titled “Examples”List every rule
Section titled “List every rule”gapline rules listOnly the errors
Section titled “Only the errors”gapline rules list --severity errorExport the full catalogue as JSON
Section titled “Export the full catalogue as JSON”gapline rules list --format json -o rules.jsonThe JSON object is suitable for diffing across releases or generating an internal compliance report.
Find a rule to disable
Section titled “Find a rule to disable”gapline rules list | grep -i speedFeed the matching ID to --disable-rule:
gapline validate -f gtfs.zip --disable-rule speed_validationExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 | Listing produced successfully. |
2 | Configuration error. |
3 | I/O error (output path unwritable). |
See concepts/exit-codes for the complete table.
See also
Section titled “See also”- Validation rules catalogue — searchable reference for every rule.
gapline validate— run the rules against a feed.- Concepts / Severities — how
error,warning, andinfodiffer.