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
Scanning /home/james/DEV/PN/eternal-sledgehammer/app/controllers/subscriptions_controller.rb
An error occurred while Layout/HashAlignment cop was inspecting /home/james/DEV/PN/eternal-sledgehammer/app/controllers/subscriptions_controller.rb:96:28.
undefined method `loc' for nil:NilClass
/home/james/DEV/PN/eternal-sledgehammer/vendor/cache/ruby/2.6.0/gems/rubocop-1.16.1/lib/rubocop/cop/layout/hash_alignment.rb:221:in `autocorrect_incompatible_with_other_cops?'
/home/james/DEV/PN/eternal-sledgehammer/vendor/cache/ruby/2.6.0/gems/rubocop-1.16.1/lib/rubocop/cop/layout/hash_alignment.rb:206:in `on_hash'
/home/james/DEV/PN/eternal-sledgehammer/vendor/cache/ruby/2.6.0/gems/rubocop-1.16.1/lib/rubocop/cop/commissioner.rb:100:in `public_send'
Offending code:
params.some_method.fetch(:foo,{}).more.another
We see an enormous number of these problems. This cop has no such issues using 1.16.0.
Steps to reproduce the problem
Simply run the cop.
RuboCop version
Include the output of rubocop -V or bundle exec rubocop -V if using Bundler.
If you see extension cop versions (e.g. rubocop-performance, rubocop-rspec, and others)
output by rubocop -V, include them as well. Here's an example:
Expected behavior
The Layout/HasAlignment cop works.
Actual behavior
Offending code:
We see an enormous number of these problems. This cop has no such issues using 1.16.0.
Steps to reproduce the problem
Simply run the cop.
RuboCop version
Include the output of
rubocop -V
orbundle exec rubocop -V
if using Bundler.If you see extension cop versions (e.g.
rubocop-performance
,rubocop-rspec
, and others)output by
rubocop -V
, include them as well. Here's an example:The text was updated successfully, but these errors were encountered: