Skip to content

Commit

Permalink
Fix #12547 : Added comment with suggestion to bring Rubocop up to the…
Browse files Browse the repository at this point in the history
… latest version in case of 'Infinite loop detected' error.
  • Loading branch information
Hiroto-Iizuka authored and bbatsov committed Apr 8, 2024
1 parent c1f28f2 commit de82525
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/rubocop/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ def initialize(path, offenses_by_iteration, loop_start: -1)
message = 'Infinite loop detected'
message += " in #{path}" if path
message += " and caused by #{root_cause}" if root_cause
message += ' \n\nPlease update to the latest RuboCop version if not already in use,'
message += ' \nand report a bug if the issue still occurs on this version.'
message += ' \n\nPlease check the latest version at "https://rubygems.org/gems/rubocop"'
super(message)
end
end
Expand Down

0 comments on commit de82525

Please sign in to comment.