DEVELOPMENT EDITION · 769442725406
Toolchain Manual

veradic format

Rewrite explicit source files using their frontend's formatter, or check their layout for CI.

veradic [GLOBAL OPTIONS] format [--check] FILES...

At least one filename is required. There is no --project or output-directory argument; use explicit matching globs and review which files they select. Each file is processed using its extension. Vada and Varc have a canonical layout, and formatting keeps comments. Vibe files are Python, laid out by Python's own conventions: veradic format leaves them as written, so use a Python formatter for them. Varc's formatter keeps the chosen inclusive range spelling, ... or ..=.

veradic format --check src/main.vadb
veradic format src/main.va
veradic format --check src/main.vb

The default rewrites changed valid files in place, printing formatted: PATH. --check (default off) lists not formatted: PATH without mutation and exits 1 if any differ. Otherwise success is 0. Syntax/read errors produce diagnostics and normally exit 1. Files with syntax errors are not rewritten; valid other files can still be formatted during a partially failing multi-file invocation. Keep version control or a backup for review.

The formatter needs readable and writable files, but no semantic resolution, proof or C compiler. File listings go to stdout even when JSON diagnostics are selected, so that combination is not a single JSON document. Human errors use stderr.

The language server's whole-document formatting does the same, so an editor formats Vada and Varc files and leaves Vibe files to a Python formatter.