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
An error occurred while RSpec/VariableName cop was inspecting /home/dev/Projects/my_project/spec/libs/foo/foo_spec.rb:68:4.
undefined method `loc' for #<Parser::Source::Range:0x0000000003abdbe8>
/home/dev/.rvm/gems/ruby-2.7.1/gems/rubocop-0.87.1/lib/rubocop/cop/cop.rb:41:in `find_location'
/home/dev/.rvm/gems/ruby-2.7.1/gems/rubocop-0.87.1/lib/rubocop/cop/cop.rb:29:in `add_offense'
/home/dev/.rvm/gems/ruby-2.7.1/gems/rubocop-0.87.1/lib/rubocop/cop/mixin/configurable_formatting.rb:13:in `check_name'
I haven’t attempted to reproduce the issue, but it looks like it may be caused by some Changes to RuboCop’s internal API in version 0.87.0. We’re looking to fix this incompatibility in #955
The
VariableName
cop is raising this error:This code triggers the error:
This works:
The text was updated successfully, but these errors were encountered: