Expand description
Bock fmt — canonical source formatter for Bock programs.
Zero-configuration, opinionated formatter that parses Bock source code and re-emits it in canonical style.
§Formatting rules
- 2-space indent, no tabs
- 80 char soft limit, 100 hard limit
- Opening brace same line
- Trailing commas in multi-line constructs
- Import sorting: core → std → external → local
- Short signatures on one line, long signatures wrap per-param
Structs§
- Format
Result - Result of formatting a source file.
- Formatter
- The canonical formatter. Walks the AST and emits formatted source text.
Functions§
- format_
source - Format a Bock source string, returning the formatted output.