Repository navigation
Fix CI lint failures after the SwiftFormat 0.64.1 update - #1475
Conversation
CI installs the latest SwiftFormat from Homebrew, and 0.64.1 flags 40 existing files (mainly repeatedGuard, indent and wrap), failing the lint step for every pull request. Apply the new formatting so lint passes again. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Device discovery and Logitech controls LinearMouse/Device/Device.swift, LinearMouse/Device/DeviceManager.swift, LinearMouse/Device/LogitechSettings/*, LinearMouse/Device/ReceiverMonitor.swift, LinearMouse/Device/VendorSpecific/* |
Combines or reformats checks in device event handling, receiver discovery, battery inventories, and Logitech control paths. Flag-change and keyboard events now use HID-event copying and sender-ID lookup, returning the default snapshot only if copying fails. |
Event and gesture processing LinearMouse/EventTransformer/*, Modules/GestureKit/Sources/GestureKit/GestureEvent+NavigationSwipe.swift |
Combines existing checks in event transformation, gesture mapping, navigation swipes, and button actions. Existing failure outcomes remain unchanged. |
Configuration, state, and UI checks LinearMouse/Model/Configuration/Scheme/*, LinearMouse/State/*, LinearMouse/UI/*, LinearMouse/Utilities/*, LinearMouse/WindowFocus/* |
Combines validation and state checks across scheme matching, device selection, app picking, battery display, and window handling. The deprecation annotation moves to the Scheme.Buttons extension. |
HID, keyboard, and pointer modules Modules/HIDPP/Sources/HIDPP/*, Modules/KeyKit/Sources/KeyKit/*, Modules/PointerKit/Sources/PointerKit/* |
Combines or reformats existing checks in HID++, KeyKit, and PointerKit. Their existing failure behavior remains unchanged. |
Priority:
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Other
Suggested reviewers: drmatrix85
Merge Risk: 
Minimal · up to ab8b0
-
No actionable issue remains; the PR is ready to merge after normal checks.
Pre-merge checks: 
4
Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
Summary
CI installs the latest SwiftFormat from Homebrew (
brew upgrade swiftformat), so the lint step now runs SwiftFormat 0.64.1. That version flags 40 files already onmain, mostly forrepeatedGuard,indentandwrap. As a result,make lintfails on every pull request, for example in #1472, whatever the PR changes.This PR reformats the repository with SwiftFormat 0.64.1 using the existing
.swiftformatconfig. There are no manual code changes.repeatedGuardmerges consecutiveguardstatements with identical bodies into oneguard. Behavior stays the same.indent/wrapre-indent multi-lineguardconditions.Verification
swiftformat --lint .reports0/431 files require formattingswiftlint .reports no errorsxcodebuild build(unsigned) succeedsswift testpasses for HIDPP, GestureKit, DockKit and PointerKit🤖 Generated with Claude Code