retrofit data check
Check data-corpus files against the data-file grammar.
Runs every file-level legality predicate over the working tree, emits no SQL
and mints nothing. Reports all findings in one envelope and exits non-zero when
any file is refused.
With no operands it walks the configured corpus root. Operands narrow the walk;
they do not enable it. A named directory is walked; a named file is checked by
the naming itself.
Usage:
retrofit data check [path...] [flags]
Flags:
--data-root data_root root that overrides the schema's data_root
-h, --help help for check
--help-all show extended help (vocabulary, semantics, caveats)
--schema <name> registered schema <name> (resolves via the chain when omitted)
Global Flags:
--as string output mode: text | json (default "text")
-C, --chdir string treat <dir> as the working directory for the entire run
--config string retrofit.toml path (overrides discovery; also accepts $RETROFIT_CONFIG)
-f, --file string oplog file path; selects a registered [[schema]] path (overrides discovery)
--no-consolidate render every advisory occurrence instead of collapsing repeats
-q, --quiet count suppress the advisory tier on stderr; stack (-qq) to drop it whole (errors and results still print)
-v, --verbose reveal info-tier advisories on stderr
Docs: https://docs.retrofit.sh/current/commands/retrofit-data-check/