-
Notifications
You must be signed in to change notification settings - Fork 87
[PM-27216] Use Sourcery in BitwardenKit #2136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Claude finished @matt-livefront's task —— View job Code Review CompletePR Title and Description QualityThe PR title and description are clear and well-structured. The objective clearly explains what is being added (Sourcery support for BitwardenKit) and why. The PR references the appropriate Jira ticket. Summary of ChangesThis PR adds Sourcery support to BitwardenKit, enabling automatic mock generation for protocols marked with Key changes:
FindingsFinding 1: BitwardenKit Sourcery configuration lacks consistency with sibling projects (🎨) The BitwardenKit ( args:
autoMockableImports: ["Combine"]
autoMockableTestableImports: ["BitwardenKit"]BitwardenShared ( args:
autoMockableImports: ["BitwardenKit", "BitwardenSdk", "Combine"]
autoMockableTestableImports: ["BitwardenShared"]Analysis: BitwardenKit's configuration is correct for its current needs since it only depends on Combine and doesn't use BitwardenSdk. However, the pattern suggests BitwardenKit is a lower-level framework that other modules depend on. The configuration appropriately reflects this dependency hierarchy. Recommendation: Consider documenting in the Finding 2: Generated mocks directory structure could benefit from documentation (💭) The PR adds - path: BitwardenKit/Sourcery/Generated/AutoMockable.generated.swift
optional: trueQuestion: Is there a reason the generated mock file is marked as Observation: The Good Practices Observed
Action Items
Technical NotesArchitecture Compliance: ✅ This change aligns with the project's testing architecture (see Pattern Consistency: ✅ The implementation exactly mirrors the approach in BitwardenShared and AuthenticatorShared, demonstrating excellent consistency across the codebase. Security Considerations: ✅ No security implications—this is a testing infrastructure change only. Overall Assessment: This is a clean, well-executed PR that properly sets up Sourcery for BitwardenKit following established patterns. The findings above are minor improvement suggestions rather than blocking issues. The code is ready for merge pending CI verification. |
|
Great job! No new security vulnerabilities introduced in this pull request |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2136 +/- ##
==========================================
- Coverage 85.23% 83.77% -1.47%
==========================================
Files 1715 1969 +254
Lines 145524 160759 +15235
==========================================
+ Hits 124042 134678 +10636
- Misses 21482 26081 +4599 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
🎟️ Tracking
PM-27216
📔 Objective
Sets up support for Sourcery in BitwardenKit.
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:) or similar for great changes:memo:) or ℹ️ (:information_source:) for notes or general info:question:) for questions:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:) for suggestions / improvements:x:) or:warning:) for more significant problems or concerns needing attention:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt:pick:) for minor or nitpick changes