rent format
Format the schema
rent formatFormat complete rent/schema.rslFormatting is deterministic and idempotent. It aligns fields, enum values, and configuration properties, separates a
block's attributes from its fields with one blank line, puts @@map last among them, normalizes spacing, and
preserves documentation comments, ordinary // comments, trailing comments, and /* block comments */. When a
comment sits among a block's attributes, their declared order is kept so the comment stays with its line.
CI can check without writing:
rent format --checkPass --schema to format one file or every RSL document in a multi-file schema directory.
Format an editor buffer
rent format --stdin < schema.rslThis mode reads one document from standard input and writes only the formatted
document to standard output. It does not load project configuration or change
files. Invalid syntax produces diagnostics on standard error and no replacement
text. It cannot be combined with --schema or --check.
The Cursor and VS Code extension uses this mode for Format Document and format on save, including unsaved buffers.
