You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@thrift.apache.org by "kpumuk (via GitHub)" <gi...@apache.org> on 2026/08/16 18:55:33 UTC
[PR] Enable additional RuboCop spacing rules [thrift]
kpumuk opened a new pull request, #3723:
URL: https://github.com/apache/thrift/pull/3723
<!-- Explain the changes in the pull request below: -->
Enable the remaining neutral RuboCop spacing rules for operators, separators, comments, lambdas, and delimiters, then apply their autocorrections across the Ruby library, benchmarks, specs, and integration tests.
This intentionally leaves interior array and hash spacing unenforced, preserving forms such as `[1, 2, 3]` and `{a: 5, b: 6}` without creating avoidable churn.
This follows the merged `Style/UnpackFirst` PR #3722; its diff contains only this spacing layer.
<!-- We recommend you review the checklist/tips before submitting a pull request. -->
- [ ] Did you create an [Apache Jira](https://issues.apache.org/jira/projects/THRIFT/issues/) ticket? ([Request account here](https://selfserve.apache.org/jira-account.html), not required for trivial changes)
- [ ] If a ticket exists: Does your pull request title follow the pattern "THRIFT-NNNN: describe my issue"?
- [x] Did you squash your changes to a single commit? (not required, but preferred)
- [x] Did you do your best to avoid breaking changes? If one was needed, did you label the Jira ticket with "Breaking-Change"?
- [ ] If your change does not involve any code, include `[skip ci]` anywhere in the commit message to free up build resources.
<!--
The Contributing Guide at:
https://github.com/apache/thrift/blob/master/CONTRIBUTING.md
has more details and tips for committing properly.
-->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@thrift.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Enable additional RuboCop spacing rules [thrift]
Posted by "kpumuk (via GitHub)" <gi...@apache.org>.
kpumuk commented on code in PR #3723:
URL: https://github.com/apache/thrift/pull/3723#discussion_r3792591461
##########
test/rb/integration/TestClient.rb:
##########
@@ -431,6 +431,6 @@ def test_oneway
time1 = Time.now.to_f
@client.testOneway(1)
time2 = Time.now.to_f
- assert_operator (time2-time1), :<, 0.1
+ assert_operator (time2 - time1), :<, 0.1
Review Comment:
All changes in this PR are auto-fixed by Rubocop. Out of scope.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@thrift.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Enable additional RuboCop spacing rules [thrift]
Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #3723:
URL: https://github.com/apache/thrift/pull/3723#discussion_r3792575067
##########
test/rb/integration/TestClient.rb:
##########
@@ -431,6 +431,6 @@ def test_oneway
time1 = Time.now.to_f
@client.testOneway(1)
time2 = Time.now.to_f
- assert_operator (time2-time1), :<, 0.1
+ assert_operator (time2 - time1), :<, 0.1
Review Comment:
This call still has a space between the method name and the opening parenthesis (`assert_operator ( ... )`), which violates the newly-enabled `Layout/SpaceAfterMethodName` (and typically `Layout/SpaceBeforeFirstArg`) in `lib/rb/.rubocop.yml`. This will likely fail RuboCop/style checks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@thrift.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Enable additional RuboCop spacing rules [thrift]
Posted by "kpumuk (via GitHub)" <gi...@apache.org>.
kpumuk merged PR #3723:
URL: https://github.com/apache/thrift/pull/3723
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@thrift.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org