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
In autocorrect mode, the Style/Block cop corrects the following code:
foo:bar,:baz,qux: lambda{ |a|
bara}
The result is:
foo:bar,:baz,qux: lambdado |a|
baraend
This gives an error in Ruby:
[matijs@walnut] ruby test_rubocop.rb
test_rubocop.rb:1:in `lambda': tried to create Proc object without a block (ArgumentError) from test_rubocop.rb:1:in `<main>'
The Rubocop version output is:
[matijs@walnut] rubocop -V
warning: parser/current is loading parser/ruby21, which recognizes
warning: 2.1.4-compliant syntax, but you are running 2.1.3.
0.27.1 (using Parser 2.2.0.pre.7, running on ruby 2.1.3 x86_64-linux)
The text was updated successfully, but these errors were encountered:
In autocorrect mode, the Style/Block cop corrects the following code:
The result is:
This gives an error in Ruby:
The Rubocop version output is:
The text was updated successfully, but these errors were encountered: