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
[Fix #10958] Fix an infinite loop for Layout/SpaceInsideBlockBraces
when multiline block
#10959
Conversation
c27c14e
to
1f060e7
Compare
1f060e7
to
34a1fcc
Compare
@@ -0,0 +1 @@ | |||
* [#10958](https://github.com/rubocop/rubocop/issues/10958): Fix an infinite loop for `Layout/SpaceInsideBlockBraces`. ([@ydah][]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a more bit explanation about the context of this error?
34a1fcc
to
6455981
Compare
Layout/SpaceInsideBlockBraces
Layout/SpaceInsideBlockBraces
when multiline block
changelog/fix_fix_an_infinite_loop_for_layout_space_inside_block_braces.md
Outdated
Show resolved
Hide resolved
5281966
to
7f3c2dc
Compare
bar | ||
]} | ||
^{} Space inside } detected. | ||
RUBY |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add expect_correction
code? It looks like InfiniteCorrectionLoop
error is not resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ops, I added it. Thank you.
7f3c2dc
to
7ad6dd1
Compare
…Braces` when `EnforcedStyle` is `no_space` and using multiline block Fix: rubocop#10958
7ad6dd1
to
6a8b7e9
Compare
Fix: #10958
Before submitting the PR make sure the following are checked:
[Fix #issue-number]
(if the related issue exists).master
(if not - rebase it).bundle exec rake default
. It executes all tests and runs RuboCop on its own code.{change_type}_{change_description}.md
if the new code introduces user-observable changes. See changelog entry format for details.