-
-
Notifications
You must be signed in to change notification settings - Fork 638
Add RBS type signatures for error classes #2004
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
This commit adds RBS type signatures for all error-related classes to complete type coverage for the gem. Classes added: - ReactOnRails::Error - Base error class - ReactOnRails::JsonParseError - JSON parsing error with context - ReactOnRails::PrerenderError - Server rendering error with detailed info - ReactOnRails::SmartError - Enhanced error with actionable suggestions These signatures provide type information for error handling, helping developers catch type-related issues during development. Fixes #1954 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
👋 Thanks for opening this PR! 🚀 Running Full CI SuiteBy default, PRs run a subset of CI jobs for faster feedback (latest Ruby/Node versions only). To run the complete CI suite including all dependency combinations and skipped jobs, comment: This will trigger:
The full CI suite takes longer but ensures compatibility across all supported versions before merging. |
|
Warning Rate limit exceeded@justin808 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 16 minutes and 15 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (4)
✨ 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 |
Code Review: Add RBS type signatures for error classesOverall Assessment✅ LGTM - This is a well-implemented addition of RBS type signatures for error classes. The signatures accurately reflect the implementations and follow the existing patterns in the codebase. Positive Observations1. Accurate Type SignaturesAll type signatures correctly match the actual Ruby implementations:
2. Consistent with Existing PatternsThe signatures follow the same conventions used in other RBS files:
3. Complete CoverageAll public methods are covered:
4. Test Coverage VerifiedThe implementations have excellent test coverage in:
Minor Observations (Non-blocking)1. Missing
|
Code Review: RBS Type Signatures for Error ClassesSummaryThis PR adds RBS type signatures for all error classes in React on Rails. The implementation is solid and follows existing patterns in the codebase. I've verified the signatures against the actual implementations. ✅ Strengths
🔍 Detailed Observations
|
## Summary Adds RBS type signatures for all error-related classes to complete type coverage for the gem. ## Changes Added RBS signatures for: - `ReactOnRails::Error` - Base error class - `ReactOnRails::JsonParseError` - JSON parsing error with context - `ReactOnRails::PrerenderError` - Server rendering error with detailed info - `ReactOnRails::SmartError` - Enhanced error with actionable suggestions ## Files Added - `sig/react_on_rails/error.rbs` - `sig/react_on_rails/json_parse_error.rbs` - `sig/react_on_rails/prerender_error.rbs` - `sig/react_on_rails/smart_error.rbs` ## Testing - RuboCop passes - RBS files follow existing patterns in the codebase - Type signatures match the actual implementations ## Related Fixes #1954 (follow-up to PR #1945) 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- Reviewable:start --> - - - This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/shakacode/react_on_rails/2004) <!-- Reviewable:end --> Co-authored-by: Claude <noreply@anthropic.com>
Summary
Adds RBS type signatures for all error-related classes to complete type coverage for the gem.
Changes
Added RBS signatures for:
ReactOnRails::Error- Base error classReactOnRails::JsonParseError- JSON parsing error with contextReactOnRails::PrerenderError- Server rendering error with detailed infoReactOnRails::SmartError- Enhanced error with actionable suggestionsFiles Added
sig/react_on_rails/error.rbssig/react_on_rails/json_parse_error.rbssig/react_on_rails/prerender_error.rbssig/react_on_rails/smart_error.rbsTesting
Related
Fixes #1954 (follow-up to PR #1945)
🤖 Generated with Claude Code
This change is