Make Swift compiler warnings fail CI - #140
Conversation
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
💤 Files with no reviewable changes (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe change removes three first-party Swift compiler warnings, enables warnings-as-errors for app and test Debug builds, excludes Sparkle, and records the build policy in the changelog. ChangesSwift warning gate
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
|
@codex review |
|
@macroscope-app review |
|
Manual reviews triggered for commit All prior checks · these links stay valid even if you push more commits. |
|
Review in progress. Results will be posted as check runs when complete. |
ApprovabilityVerdict: Would Approve CI policy change to fail on Swift compiler warnings, with mechanical fixes (removing dead code, discarding unused return values). These are trivial, low-risk changes with no runtime behavior impact. Macroscope would have approved this PR. Enable approvability here. |
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Closes #138
Summary
Verification
DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer ./test.sh— passed all smoke scripts and 329 testsDEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer xcodebuild -project CodexBarMac.xcodeproj -scheme CodexBarMac -destination 'platform=macOS' -configuration Debug CODE_SIGN_IDENTITY="-" CODE_SIGNING_REQUIRED=NO clean test— clean and test succeeded; 329 tests, 0 failures; no first-party Swift compiler warningsDEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer xcodebuild -project CodexBarMac.xcodeproj -scheme CodexBarMac -destination 'platform=macOS' -configuration Debug CODE_SIGN_IDENTITY="-" CODE_SIGNING_REQUIRED=NO clean analyze— clean and analyze succeeded; no first-party Swift compiler warnings-warnings-as-errorsgit diff --check— passedResidual risk
Summary by cubic
Fail Debug builds on Swift warnings for the app and test targets to keep first‑party CI warning‑free; excludes
Sparkle. Closes #138.SWIFT_TREAT_WARNINGS_AS_ERRORS=YESfor Debug on app and tests; documented the clean-build gate..unchangedcase; kept fallback behavior.lock.withLockresults in Copilot token cache and tests to silence unused-result warnings.Written for commit 4d9da06. Summary will update on new commits.
Note
Make Swift compiler warnings fail CI builds
SWIFT_TREAT_WARNINGS_AS_ERRORS = YESin project.pbxproj for debug app and test build configurations (excluding Sparkle).lock.withLockcalls in CopilotUsageProvider.swift and CodexBarMacTests.swift using_ = lock.withLock { ... }..unchangedcredential refresh branch in ClaudeUsageProvider.swift that was generating an unreachable-code warning.Macroscope summarized 4d9da06.