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
The Style/RedundantParentheses cop auto-correction causes invalid syntax for a heredoc string used in an array or hash, as the autocorrect adds the comma to the end of the heredoc end marker, breaking the marker.
The
Style/RedundantParentheses
cop auto-correction causes invalid syntax for a heredoc string used in an array or hash, as the autocorrect adds the comma to the end of the heredoc end marker, breaking the marker.Seems related to PR #10885.
Expected behavior
Rubocop should leave the parentheses and comma, or otherwise keep the syntax valid.
Actual behavior
The auto-correct removes the parentheses and adds a comma to the end of the heredoc marker, resulting in invalid syntax.
Steps to reproduce the problem
Example:
Is improperly autocorrected to:
RuboCop version
The text was updated successfully, but these errors were encountered: