Control Flow Braces

Brace style for the Charty codebase — use when writing or editing any Kotlin in charty/ or composeApp/, and before committing. Every `if`/`else if`/`else`/`for`/`while` body must be wrapped in braces `{ }`, even a single statement, a one-liner, or an `if`/`else` used as a value expression. Braceless forms like `if (w > m) m = w` or `val x = if (a) 1 else 2` are not allowed.

hi-manshu efca4f7 3.1 KB Updated

File contents

hi-manshu/charty/tree/main/.claude/skills/control-flow-braces commit efca4f7e6b

Frequently asked questions

npx skillmds@latest add hi-manshu/control-flow-braces