Skip to content
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

Bug: curly brace converting to do WITHOUT SPACE breaks code block (changes field_set_tag { to field_set_tagdo) #7534

Closed
jeremymoritz opened this issue Nov 28, 2019 · 0 comments · Fixed by #7535
Labels

Comments

@jeremymoritz
Copy link

When rubocop.yml is configured thusly:

Layout/SpaceBeforeBlockBraces:
  EnforcedStyle: no_space

then this bug happens

field_set_tag {

gets changed to

field_set_tagdo

image

This breaks the code

@koic koic added the bug label Nov 28, 2019
koic added a commit to koic/rubocop that referenced this issue Nov 29, 2019
…reBlockBraces`

Fixes rubocop#7534.

Fix an incorrect autocorrect for `Style/BlockDelimiters` cop and
`Layout/SpaceBeforeBlockBraces` cop with `EnforcedStyle: no_space`
when using multiline braces.
koic added a commit that referenced this issue Nov 29, 2019
…pace_before_block_braces

[Fix #7534] Fix an incorrect autocorrect for `Layout/SpaceBeforeBlockBraces`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants