Formatting Rules
This section defines all formatting rules for yaoxiang fmt. Rules are categorized by topic as follows:
Basic Rules
- Basic Formatting Rules — Indentation, line width, operators, code blocks
Functions
- Function-related Rules — Function definitions, function calls, Lambda expressions
Type System
- Type System Rules — Type annotations, references and borrowing, type casting
Data Structures
- Data Structure Rules — Literals, lists and dictionaries, Match expressions
Control Flow
- Control Flow Rules — if/else if/else, for loops, while loops, loop labels
Special Syntax
- Special Syntax Rules — F-Strings, import statements, error handling, Unsafe blocks
