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
…ifier`
Fixesrubocop#13291.
This PR fixes an incorrect autocorrect for `Style/RescueModifier`
when using modifier rescue for method call with heredoc argument.
…ifier`
Fixesrubocop#13291.
This PR fixes an incorrect autocorrect for `Style/RescueModifier`
when using modifier rescue for method call with heredoc argument.
The autocorrection of heredoc indentation after autocorrect will be left to other cops,
such as `Layout/ClosingHeredocIndentation` and `Layout/HeredocIndentation`.
Originally reported in standardrb/standard#652
Given example.rb:
standardrb --fix example.rb
creates syntactically invalid output from theStyle/RescueModifier
rule.Expected behavior
Actual behavior
Steps to reproduce the problem
standardrb --fix example.rb
RuboCop version
The text was updated successfully, but these errors were encountered: