Skip to content

Fix type_body_length lint warning in EventKitStore#29

Closed
philoserf wants to merge 1 commit into
openclaw:mainfrom
x3c3:fix/eventkitstore-type-body-length
Closed

Fix type_body_length lint warning in EventKitStore#29
philoserf wants to merge 1 commit into
openclaw:mainfrom
x3c3:fix/eventkitstore-type-body-length

Conversation

@philoserf
Copy link
Copy Markdown

Summary

  • Replace 3 inline ReminderItem(...) constructions with calls to the existing item(from:) helper that was never being used
  • Removes ~30 duplicate lines, bringing the RemindersStore actor body well under SwiftLint's 250-line threshold
  • No behavior change

Closes #28

Test plan

  • make lint — 0 violations
  • swift test — all 22 tests pass

🤖 Generated with Claude Code

… warning

Replace 3 inline ReminderItem constructions in createReminder,
updateReminder, and completeReminders with calls to the existing
item(from:) helper. No behavior change.

Closes openclaw#28

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@philoserf
Copy link
Copy Markdown
Author

This was existing lint noticed upon first examination of the source.

jakubswierczek added a commit to jakubswierczek/remindctl that referenced this pull request Mar 30, 2026
…claw#29)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
jakubswierczek added a commit to jakubswierczek/remindctl that referenced this pull request Mar 30, 2026
resolved conflict with openclaw#29 refactor — creationDate added to item(from:) helper

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
jakubswierczek added a commit to jakubswierczek/remindctl that referenced this pull request Mar 30, 2026
…law#30)

resolved conflicts with openclaw#29 refactor and openclaw#13 creationDate — added
dueDateIsAllDay to ReminderItem, item(from:), and fetchReminders

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
hezhongtang added a commit to hezhongtang/remindctl that referenced this pull request Apr 17, 2026
Merged 9 PRs from steipete/remindctl:
- openclaw#29 lint fix, openclaw#26 open filter, openclaw#35 tags support
- openclaw#30 all-day/date-only reminders, openclaw#40 recurrence rules
- openclaw#39 alarm support, openclaw#27 reminder sections
- openclaw#44 isFlagged support, openclaw#13 creationDate in output
@steipete
Copy link
Copy Markdown
Collaborator

steipete commented May 4, 2026

Thanks, Mark. This cleanup is now on main in 3d8d1a9: the create/update/complete paths reuse item(from:), and current swiftlint reports 0 violations. Closing this as superseded by the maintainer-landed fix.

@steipete steipete closed this May 4, 2026
@philoserf philoserf deleted the fix/eventkitstore-type-body-length branch May 4, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SwiftLint type_body_length warning in EventKitStore.swift

2 participants