You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
This PR addresses RuboCop style violations in the Pro package without
any functional changes.
## Changes
### RuboCop Fixes
- **Method complexity**: Added `rubocop:disable` directives for
legitimately complex methods (`create_connection`, `each_chunk`)
- **String formatting**: Fixed heredoc indentation in
`license_public_key.rb`
- **Code readability**: Improved line breaks in long method calls and
complex lambdas
- **RSpec style**: Updated context naming to use `when`/`with` prefixes
per RSpec conventions
- **Block handling**: Replaced `block.call` with `yield` where
appropriate
- **Regex escaping**: Fixed regex patterns in spec files
- **Removed redundant RuboCop disable directives** that are no longer
needed
### Workflow Changes
- Added `--ignore-parent-exclusion` flag to `pro-lint.yml` workflow to
properly lint Pro package files
## Testing
All changes are style/formatting only with zero functional
modifications. RuboCop now passes cleanly on the Pro package.
## Related Issues
Split from #[ORIGINAL_PR] - this contains only RuboCop fixes, while the
CI workflow modernization remains in the original PR.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Chores**
* Renamed and improved lint workflow; adjusted Ruby linter invocation
and simplified repository ignore rules to reduce noise.
* **Tests**
* Consolidated and clarified test setups, updated matchers and test
paths, and modernized test syntax for consistency.
* **Style**
* Minor formatting and constant-lookup refinements across the codebase;
added lint directives to suppress style warnings.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Judah Meek <[email protected]>
# Official HTTPx docs says that we should use the retry_on option to decide if teh request should be retried or not
234
-
# However, HTTPx assumes that connection errors such as timeout error should be retried by default and it doesn't consider retry_on block at all at that case
235
-
# So, we have to do the following trick to avoid retries when a Timeout error happens while streaming a component
236
-
# If the streamed component returned any chunks, it shouldn't retry on errors, as it would cause page duplication
237
-
# The SSR-generated html will be written to the page two times in this case
0 commit comments