Skip to content

Commit

Permalink
Fix #12547 : fix text
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroto-Iizuka authored and bbatsov committed Apr 8, 2024
1 parent 7d42542 commit ebcc72a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions lib/rubocop/runner.rb
Expand Up @@ -20,9 +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'
message += ' Hint: Please update to the latest RuboCop version if not already in use,'
message += ' and report a bug if the issue still occurs on this version.'
message += ' Please check the latest version at https://rubygems.org/gems/rubocop'
super(message)
end
end
Expand Down
24 changes: 12 additions & 12 deletions spec/rubocop/runner_spec.rb
Expand Up @@ -316,9 +316,9 @@ class Klass
described_class::InfiniteCorrectionLoop,
"Infinite loop detected in #{source_file_path} and caused by " \
'Test/ClassMustBeAModuleCop -> Test/ModuleMustBeAClassCop ' \
'\n\nPlease update to the latest RuboCop version if not already in use, ' \
'\nand report a bug if the issue still occurs on this version. ' \
'\n\nPlease check the latest version at https://rubygems.org/gems/rubocop'
'Hint: Please update to the latest RuboCop version if not already in use, ' \
'and report a bug if the issue still occurs on this version. ' \
'Please check the latest version at https://rubygems.org/gems/rubocop'
)
end
end
Expand All @@ -339,9 +339,9 @@ class AnotherKlass
described_class::InfiniteCorrectionLoop,
"Infinite loop detected in #{source_file_path} and caused by " \
'Test/ClassMustBeAModuleCop -> Test/ModuleMustBeAClassCop ' \
'\n\nPlease update to the latest RuboCop version if not already in use, ' \
'\nand report a bug if the issue still occurs on this version. ' \
'\n\nPlease check the latest version at https://rubygems.org/gems/rubocop'
'Hint: Please update to the latest RuboCop version if not already in use, ' \
'and report a bug if the issue still occurs on this version. ' \
'Please check the latest version at https://rubygems.org/gems/rubocop'
)
end
end
Expand Down Expand Up @@ -379,9 +379,9 @@ class A_A
"Infinite loop detected in #{source_file_path} and caused by " \
'Test/ClassMustBeAModuleCop, Test/AtoB ' \
'-> Test/ModuleMustBeAClassCop, Test/BtoA ' \
'\n\nPlease update to the latest RuboCop version if not already in use, ' \
'\nand report a bug if the issue still occurs on this version. ' \
'\n\nPlease check the latest version at https://rubygems.org/gems/rubocop'
'Hint: Please update to the latest RuboCop version if not already in use, ' \
'and report a bug if the issue still occurs on this version. ' \
'Please check the latest version at https://rubygems.org/gems/rubocop'
)
end
end
Expand Down Expand Up @@ -416,9 +416,9 @@ class A
described_class::InfiniteCorrectionLoop,
"Infinite loop detected in #{source_file_path} and caused by " \
'Test/AtoB -> Test/BtoC -> Test/CtoA ' \
'\n\nPlease update to the latest RuboCop version if not already in use, ' \
'\nand report a bug if the issue still occurs on this version. ' \
'\n\nPlease check the latest version at https://rubygems.org/gems/rubocop'
'Hint: Please update to the latest RuboCop version if not already in use, ' \
'and report a bug if the issue still occurs on this version. ' \
'Please check the latest version at https://rubygems.org/gems/rubocop'
)
end
end
Expand Down

0 comments on commit ebcc72a

Please sign in to comment.