From 7fc13ac2c57220b943472433f14cf169ce091705 Mon Sep 17 00:00:00 2001 From: darken Date: Tue, 28 Jul 2026 17:44:39 +0200 Subject: [PATCH] chore(claude): Correct modifier-position claim in code style rule --- .claude/rules/code-style.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.claude/rules/code-style.md b/.claude/rules/code-style.md index b629d073..a95f85e5 100644 --- a/.claude/rules/code-style.md +++ b/.claude/rules/code-style.md @@ -75,7 +75,10 @@ fun SettingsScreen( ) { ... } ``` -- `modifier: Modifier = Modifier` goes **last**, after required params — not first +- `modifier: Modifier = Modifier` goes after the required parameters — i.e. it is the first + *optional* one, per the Compose API guidelines. capod is not fully consistent here (roughly 10 + composables put it after required params, 3 put it genuinely first); match the file you're in + rather than reformatting neighbours - The Host null-guards state; `collectAsStateWithLifecycle(initialValue = null)` is the usual shape - Wrap previews in `PreviewWrapper` (`common/compose/PreviewWrapper.kt`), which applies `CapodTheme` plus a background `Surface`