xpd data-prep gate
Run the recorded checks and compare the committed fix with its predecessor. For a design fix, cite checklist items and edit a file that owns them.
See the recorded run for how to use xpd data-prep gate.
For a fix named split-first with the title shown below, the run lists this line after a successful gate.
split-first Split before fitting the scaler (kept, 1 fixed, 0 added)xpd data-prep gate [OPTIONS] <FIX>Arguments
Section titled “Arguments”| Argument | What it does |
|---|---|
<FIX> |
Required. |
Options
Section titled “Options”| Option | Default | What it does |
|---|---|---|
--working-tree |
Gate current working-tree changes as a snapshot without committing. Conflicts with --staged. |
|
--staged |
Gate only staged index changes as a snapshot without committing. Conflicts with --working-tree. |
|
--commit <REV> |
Gate this one commit against its parent, leaving out what other writers commit or edit in the same checkout. Conflicts with --working-tree, --staged. |
|
--format <FORMAT> |
Output format. Default: text on a terminal, json otherwise. Values: text, json. |
Example
Section titled “Example”$ xpd data-prep gate --helpGate a fix: run the checks, time `--bench` when set, count lines and compare the findings with the commit before it. Exit 1 when the fix is not kept
Usage: xpd data-prep gate [OPTIONS] <FIX>
Arguments: <FIX>
Options: --working-tree Gate current working-tree changes as a snapshot without committing --staged Gate only staged index changes as a snapshot without committing --commit <REV> Gate this one commit against its parent, leaving out what other writers commit or edit in the same checkout --format <FORMAT> Output format. Default: text on a terminal, json otherwise [possible values: text, json] -h, --help Print help