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
elasticsearch.rb:224:21: C: Layout/RescueEnsureAlignment: rescue at 224, 20 is not aligned with results = begin at 218, 10.
rescue StandardError
^^^^^^
…ment`
Fixesrubocop#8710 and rubocop#8717.
This PR fixes a false positive for `Layout/RescueEnsureAlignment`
when `Layout/BeginEndAlignment` cop is not enabled status (e.g. pending, disabled).
This patch includes workaround for pending status until RuboCop 1.0 is released.
Expected behavior
Layout/BeginEndAlignment should correctly detect begin/rescue/end alignment.
Actual behavior
If begin/rescue/end is assigned to value then the alignment is being incorreclty detected:
Steps to reproduce the problem
Given this code:
Autocorrected to this:
RuboCop version
Related Issues
The text was updated successfully, but these errors were encountered: