We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Style/SpaceInsideBlockBraces
We use Style/BlockDelimiters Enabled: false. For the following file:
Style/BlockDelimiters
Enabled: false
> cat foo.rb # encoding: utf-8 # frozen_string_literal: true [1, 2, 3].map {|x| puts x + 1 } [1, 2, 3].map {|x| puts x + 1 }
Rubocop only reports the missing space for the single-line block.
Rubocop reports offenses for both blocks:
Inspecting 1 file C Offenses: foo.rb:4:15: C: Space between { and | missing. [1, 2, 3].map {|x| ^^ foo.rb:8:15: C: Space between { and | missing. [1, 2, 3].map {|x| puts x + 1 } ^^ 1 file inspected, 2 offenses detected
Inspecting 1 file C Offenses: foo.rb:8:15: C: Space between { and | missing. [1, 2, 3].map {|x| puts x + 1 } ^^ 1 file inspected, 1 offense detected
Run Rubocop on the provided file with Style/BlockDelimiters disabled.
Include the output of rubocop -V:
rubocop -V
> rubocop -V 0.40.0 (using Parser 2.3.1.0, running on ruby 2.2.3 x86_64-darwin14)
@ commit 332dbaa
332dbaa
The text was updated successfully, but these errors were encountered:
[Fix rubocop#3183] Ensure Style/SpaceInsideBlockBraces works for mu…
0ef2306
…lti-line blocks
b981095
46e2189
…lti-line blocks (rubocop#3184)
No branches or pull requests
We use
Style/BlockDelimiters
Enabled: false
. For the following file:Rubocop only reports the missing space for the single-line block.
Expected behavior
Rubocop reports offenses for both blocks:
Actual behavior
Steps to reproduce the problem
Run Rubocop on the provided file with
Style/BlockDelimiters
disabled.RuboCop version
Include the output of
rubocop -V
:@ commit
332dbaa
The text was updated successfully, but these errors were encountered: