refactor: address copilot include diagnostics comments#5
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe changes refactor include-related functionality by extracting hardcoded string literals into exported constants and renaming the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 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 |
There was a problem hiding this comment.
Pull request overview
This PR refactors include-diagnostics plumbing between internal/engine and internal/cli by standardizing the “include missing” hint naming and removing string-literal coupling via exported constants.
Changes:
- Rename
DoctorReport.IncludeHinttoDoctorReport.IncludeMissingHintfor consistency withResult.IncludeMissingHint. - Export include origin / missing-hint constants from
internal/engineand use them frominternal/cli. - Update integration tests and CLI formatting/checks to use the renamed field and exported constants.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| internal/engine/engine.go | Renames doctor report field; exports include origin/missing-hint constants; updates internal assignments to use the exported constants. |
| internal/engine/engine_integration_test.go | Updates assertions to use IncludeMissingHint and the exported hint constant. |
| internal/cli/cli.go | Replaces magic-string comparisons with engine constants and switches doctor output to IncludeMissingHint. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
IncludeMissingHintengineand use them incliWhy
Copilot left 3 inline comments on the previous PR recommending:
ResultandDoctorReportengineandcliThis PR applies those recommendations directly.
Validation
go test ./...make ciSummary by CodeRabbit