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].

Arguments

This command accepts no operands.

Options

OptionDescription
--define <name[=value]>Set or override a config compile-time value
--jsonOutput diagnostics in JSON format
--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.