Skip to content

relgap registry lint ​

Without arguments, checks the entries embedded in relgap. With arguments, checks those files.

Reports unknown keys and wrong types; regular expressions that don't compile (version.exclude, version.extract and source headings); version.scheme regex without version.extract and the reverse; unknown placeholders in path_template, url_template, ref and anchor; a url_template host relgap doesn't fetch from; CSS selectors in content and strip that don't parse; and a name that doesn't match the file name. Each problem has file:line:column, and lint exits 2 when there is any.

Usage ​

sh
relgap registry lint [file...]

Arguments ​

ArgumentRequiredRepeatable
filenoyes

The global flags work with every command.

Output formats ​

--format accepts tty, plain, json. Without it, the format is tty when stdout is a terminal and plain otherwise. Formats are described on the global flags page.

Exit codes ​

CodeMeaning
0The command finished. With --fail-on, nothing matched.
1The command failed: a read, a write, a child process or a check failed.
2Wrong usage: an unknown command or flag, a bad value or argument, an invalid config file, or a prompt with no terminal.
130Interrupted by Ctrl-C (SIGINT) or a cancelled context.

All codes are listed on the exit codes page.

Examples ​

sh
relgap registry lint
relgap registry lint registry/terraform.yaml