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
I've hit a Rubocop failure with a certain snippet of Ruby, and I've managed to simplify it to:
defx(a)super(a,a){a}end
Strangely:
If I remove one of the parameters to super(), it works
If I use any method name instead of super, it works
If I remove the reference to a inside the block, it works
The original was in a module, hence the use of super, but the error is identical when not in a module. The error I'm seeing is:
1 error occurred:
An error occurred while Next cop was inspecting /Users/shaun/Projects/status/test.rb.
Errors are usually caused by RuboCop bugs.
Please, report your problems to RuboCop's issue tracker.
Mention the following information in the issue report:
0.22.0 (using Parser 2.1.9, running on ruby 2.1.2 x86_64-darwin13.0)
I invoked it simply as rubocop test.rb, and my .rubocop.yml contains:
no implicit conversion of Parser::AST::Node into String
/Users/shaun/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rubocop-0.22.0/lib/rubocop/cop/style/next.rb:59:in `match'
/Users/shaun/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rubocop-0.22.0/lib/rubocop/cop/style/next.rb:59:in `method?'
/Users/shaun/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rubocop-0.22.0/lib/rubocop/cop/style/next.rb:35:in `on_block'
Let me know if there's any further help I can offer.
The text was updated successfully, but these errors were encountered:
I've hit a Rubocop failure with a certain snippet of Ruby, and I've managed to simplify it to:
Strangely:
super()
, it workssuper
, it worksa
inside the block, it worksThe original was in a module, hence the use of
super
, but the error is identical when not in a module. The error I'm seeing is:I invoked it simply as
rubocop test.rb
, and my.rubocop.yml
contains:I enabled debug output and I see:
Let me know if there's any further help I can offer.
The text was updated successfully, but these errors were encountered: