All required issues from the ObsidianReviewBot review have been fixed.
Issue: Promises must be awaited, end with .catch, .then with rejection handler, or be explicitly marked as ignored with the void operator.
Fixes Applied:
- Line 58: Added
voidoperator fortoggleFocusCheckin()in ribbon callback - Line 65, 71, 77: Added
voidoperators for command callbacks - Line 95: Added
voidoperator for auto-start - Line 100: Added
voidoperator inonunload() - Line 118: Added
awaitforsaveSettings()instartFocusCheckin() - Line 134: Added
awaitforsaveSettings()instopFocusCheckin() - Line 168-172: Wrapped async callback in
setTimeoutwithvoid (async () => { ... })() - Line 320-321, 373: Added proper promise handling in settings callbacks
Issue: Command ID should not include the plugin ID.
Fixes Applied:
- Line 63:
start-focus-checkin→start-checkin - Line 69:
stop-focus-checkin→stop-checkin - Line 75:
toggle-focus-checkin→toggle-checkin - Line 82:
test-system-notification→test-notification
Issue: Command name should not include the plugin name, and should use sentence case.
Fixes Applied:
- Line 64: "Start focus check-in" → "Start check-in"
- Line 70: "Stop focus check-in" → "Stop check-in"
- Line 76: "Toggle focus check-in" → "Toggle check-in"
- Line 83: "Test system notification" (already correct)
To properly handle promises, the following functions were made async:
toggleFocusCheckin()(line 103)startFocusCheckin()(line 111)stopFocusCheckin()(line 127)
All fixes verified with grep:
# Command IDs and names
grep -n "id:\|name:" main.ts | head -10
# Await statements
grep -n "await.*save" main.ts
# Void operators
grep -n "void this\." main.ts- Push changes to GitHub
- The ObsidianReviewBot will automatically re-scan within 6 hours
- Once approved, the plugin will be ready for manual review
There are some dependency resolution issues with eslint-plugin-obsidianmd in this pnpm workspace. The fixes were verified manually and match all the requirements from the review comments. The bot's automated scan should pass once the changes are pushed.