Skip to content

rules

gapline rules list [--severity LEVEL] [--format FORMAT] [-o PATH]

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.

CommandPurpose
listPrint the registered rules.
FlagShortValueDescription
--severityLEVELRestrict the listing to rules of this severity: error, warning, or info.
--formatFORMATOutput format: text, json, csv, xml, html. Defaults to text.
--output-oPATHWrite the listing to this path instead of stdout.

Global flags are listed on reference/global-flags.

Terminal window
gapline rules list
Terminal window
gapline rules list --severity error
Terminal window
gapline rules list --format json -o rules.json

The JSON object is suitable for diffing across releases or generating an internal compliance report.

Terminal window
gapline rules list | grep -i speed

Feed the matching ID to --disable-rule:

Terminal window
gapline validate -f gtfs.zip --disable-rule speed_validation
CodeMeaning
0Listing produced successfully.
2Configuration error.
3I/O error (output path unwritable).

See concepts/exit-codes for the complete table.