-
Notifications
You must be signed in to change notification settings - Fork 25
Clippy disallow log crate macros #581
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
🔍 SDK Breaking Change Detection ResultsSDK Version:
Breaking change detection completed. View SDK workflow |
|
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 #581 +/- ##
=======================================
Coverage 79.51% 79.51%
=======================================
Files 302 302
Lines 32311 32311
=======================================
Hits 25691 25691
Misses 6620 6620 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Claude finished @neuronull's task —— View job Code Review: Clippy disallow log crate macrosThis PR adds clippy lints to enforce the migration from Summary of ChangesSingle commit adding clippy configuration to disallow
Critical Issues FoundFinding 1: 💭 Breaking change detection shows TypeScript compilation failure, but this appears unrelated to the PR changes since no runtime behavior or API surface is modified - only developer-facing lint rules were added. ContextThe breaking change detection reported: "TypeScript compilation failed with new SDK version" (details). However, this PR only modifies clippy configuration files that affect compile-time checks for Rust developers. No code changes were made that would affect:
The TypeScript failure is likely either:
Recommendation: Verify the clients workflow failure is unrelated before merging, or document why it's a false positive. Suggested ImprovementsNone. The implementation is correct and complete. Good Practices Observed
PR Metadata QualityFinding 2: 💭 PR description could be enhanced with verification details. Suggested improvementsThe PR description is good overall with clear objective and Jira reference. Consider adding: Test Plan section: ## Test plan
- Verified no existing `log::` macro usage in codebase via `rg 'log::(trace|debug|info|warn|error)!'`
- Confirmed clippy configuration is valid
- All CI checks passed (security scan, code coverage)This would document how the changes were validated and provide confidence that the migration is complete. Action Items
|

🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-28762
📔 Objective
Now that the SDK is using
tracinginstead oflog, add the same clippy lint to disallow the log crate's macros as we have in clients repo.🚨 Breaking Changes
⏰ Reminders before review
team
🦮 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 confirmedissue 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