rux check
Purpose
Parse and analyze the source workspace files for syntactic or semantic safety flaws without emitting compilation binaries.
Synopsis
rux check [options]
Behavior
Runs lexing, parsing, dependency loading, conditional-compilation folding, and semantic analysis without linking. Any supported target may be checked, including a foreign target. --define values override [Build.Defines]. A package whose last check reported nothing and whose inputs are unchanged is skipped; --no-cache checks it anyway. At a workspace root every member is checked, side by side.
Arguments
This command accepts no operands.
Options
| Option | Description |
|---|---|
--define <name[=value]> | Set or override a config compile-time value |
--json | Output diagnostics in JSON format |
--no-cache | Check every package even when an earlier check found nothing and is still up to date |
--target <triple> | Check code health for a specific target platform |
Global options may appear before or after the command. See Global options.
Output and exit status
Text diagnostics go to stderr. With --json, stdout receives one complete JSON document with a success flag and an escaped diagnostics array, including on failure.
Success exits 0, invalid command-line usage exits 2, and compiler, validation, filesystem, network, or generation failures exit 1 unless stated otherwise above.
Examples
rux check
rux check --json
rux check --target windows-x86_64
Environment variables
This command defines no command-specific environment variables.
The global color environment behavior is described under Global options.