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
/Users/tsmith/test.rb:7:31: W: [Corrected] Layout/BeginEndAlignment: end at 7, 30 is not aligned with @rspec_version_string ||= begin at 3, 4.
end
^^^
1 file inspected, 1 offense detected, 1 offense corrected
…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/end alignment.
Actual behavior
If begin/end is assigned to value then the alignment is being incorreclty detected:
Steps to reproduce the problem
Given this code:
Autocorrects to this:
RuboCop version
master
The text was updated successfully, but these errors were encountered: