Skip to content
New issue

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

An error occurred while Layout/RescueEnsureAlignment #6551

Closed
veganstraightedge opened this issue Dec 5, 2018 · 3 comments
Closed

An error occurred while Layout/RescueEnsureAlignment #6551

veganstraightedge opened this issue Dec 5, 2018 · 3 comments

Comments

@veganstraightedge
Copy link

In a Dependabot version bump PR from 0.60 to to 0.61, I get three new errors that weren't there before.

3 errors occurred:
An error occurred while Layout/RescueEnsureAlignment cop was inspecting …
An error occurred while Layout/RescueEnsureAlignment cop was inspecting …
An error occurred while Layout/RescueEnsureAlignment cop was inspecting …

The relevant methods are in this gist (with a comment point to the offending line).

https://gist.github.com/veganstraightedge/21fca151508247d364293fa51ef1b638


The common pattern between all three is this:

foo =
  begin
    puts 'begin'
  rescue SomeKindOfException => e 
    puts 'rescue'
  end

The offending line is the rescue … line in all three cases.

Halp?

@Drenmi
Copy link
Collaborator

Drenmi commented Dec 6, 2018

Duplicate of #6550. Please follow that issue for resolution. 🙇

@Drenmi Drenmi closed this as completed Dec 6, 2018
@veganstraightedge
Copy link
Author

Thank you!

@joshuapinter
Copy link
Contributor

FYI, this was fixed in 0.61.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants