Infinite loop detected caused by Layout/ArgumentAlignment, Layout/ClosingParenthesisIndentation, Layout/MultilineMethodCallIndentation -> Layout/ArgumentAlignment, Layout/ClosingParenthesisIndentation, Layout/FirstArgumentIndentation #9641
Labels
Since updating to v1.11 from v1.10 I have encountered issues running
rubocop -A
.Whilst I can and should look at simplifying the code in question, I thought I'd post here anyway as an example of code that breaks rubocop so you can avoid it impacting others.
Expected behavior
Rubocop when run with
-A
would run and successfully and correct any violations.Actual behavior
It attempts a number of corrections to the offending line of code:
before failing with the following error:
Infinite loop detected in /[...path_to_file]/present_collection.rb and caused by Layout/ArgumentAlignment, Layout/ClosingParenthesisIndentation, Layout/MultilineMethodCallIndentation -> Layout/ArgumentAlignment, Layout/ClosingParenthesisIndentation, Layout/FirstArgumentIndentation
Steps to reproduce the problem
The offending code is as follows:
RuboCop version
The text was updated successfully, but these errors were encountered: