wordmaker: wrap an over-long line so detekt passes (#ux-audit)
- Commit
4000223f2c1c49d5e0d9556ff2b4a6d85d01bccb- Author
- Vayun Mathur <[email protected]>
- When
- 2026-11-13 03:13 UTC (23 days ago)
- Parents
fafb4fc
Symptom: :games:wordmaker:detekt failed on main with one error, MaxLineLength at WordMakerViewModel.kt:177 (the bonusWords combine call, 121+ characters; the limit for non-UI code is 120). Fix: break the combine(...) argument list over lines. No behaviour change. User-visible effect: none. Lets the module's detekt task pass, so the UX-audit branch can report a green detekt run (all other detekt findings in this module are warnings). Verification: detekt in the toolchain container (see the branch report); unit tests unaffected.
Diff
games/wordmaker/src/main/java/com/vayunmathur/games/wordmaker/platform/WordMakerViewModel.kt
diff --git a/games/wordmaker/src/main/java/com/vayunmathur/games/wordmaker/platform/WordMakerViewModel.kt b/games/wordmaker/src/main/java/com/vayunmathur/games/wordmaker/platform/WordMakerViewModel.ktindex ce7ad664b0..be199b6b83 100644--- a/games/wordmaker/src/main/java/com/vayunmathur/games/wordmaker/platform/WordMakerViewModel.kt+++ b/games/wordmaker/src/main/java/com/vayunmathur/games/wordmaker/platform/WordMakerViewModel.kt@@ -174,7 +174,9 @@ class WordMakerViewModel(application: Application) : AndroidViewModel(applicatio }.stateIn(viewModelScope, SharingStarted.WhileSubscribed(5_000), emptySet()) val bonusWords: StateFlow<Set<String>> =- combine(gameMode, casualBonusWords, _competitiveBonusWords, dailyBonusWords) { mode, casual, competitive, daily ->+ combine(+ gameMode, casualBonusWords, _competitiveBonusWords, dailyBonusWords,+ ) { mode, casual, competitive, daily -> when (mode) { GameMode.COMPETITIVE -> competitive GameMode.DAILY -> daily