Repository navigation
ADFA-6299: Rename past-tense composable lambda parameters - #2092
Conversation
ktlint compose:parameter-naming rejects past-tense lambda parameter names in composables. Rename onDragStopped to onDragStop and onResizeStopped to onResizeStop, with all call sites.
The rename puts FloatingWindowChrome.kt and FloatingWindow.kt under the Spotless ratchet, which formats each changed file in full.
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Essentials Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Essentials Run ID: 📒 Files selected for processing (2)
Included review availability: This review used your included allowance. 4 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour. 📝 Summary
WalkthroughThe floating window chrome renames drag and resize completion callbacks. The minimized bubble now derives its monogram from the first non-whitespace title character, or displays a bullet when the title has no such character. The call site uses the renamed callbacks. ChangesFloating window chrome
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~8 minutes Change: Refactor Merge Risk: ⚪ Minimal · up to The callback rename preserves existing window behavior, and blank titles safely display a bullet. No actionable merge-blocking risk was identified; merge after normal checks pass. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
A rabbit taps the window frame, Comment |
ADFA-6299
Fixes lint debt from ADFA-4399 that fails
spotlessCheckon any branch that editsFloatingWindowChrome.kt. Unblocks ADFA-6174.ktlint
compose:parameter-namingrejects past-tense lambda parameters in composables. RenamesonDragStoppedtoonDragStopandonResizeStoppedtoonResizeStop.Review by commit:
FloatingWindowChrome.ktandFloatingWindow.kt.git grepfinds no other uses of the old names.style: spotless reformat, no functional change- the rename puts both files under the Spotless ratchet. Line wraps and indentation only. The reformat cannot go first:spotlessApplystops on the same lint error until the rename is in.Verified:
./gradlew spotlessCheckpasses../gradlew :floating-window:compileV8DebugKotlinpasses.No UI change, so no font-scale check.